summaryrefslogtreecommitdiff
path: root/protocols/CloudFile/src/events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/CloudFile/src/events.cpp')
-rw-r--r--protocols/CloudFile/src/events.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/CloudFile/src/events.cpp b/protocols/CloudFile/src/events.cpp
index 8f254bdaa8..31f47f2abd 100644
--- a/protocols/CloudFile/src/events.cpp
+++ b/protocols/CloudFile/src/events.cpp
@@ -26,7 +26,7 @@ static int OnProtoAck(WPARAM, LPARAM lParam)
static int OnFileDialogCanceled(WPARAM hContact, LPARAM)
{
- for (auto &service : Services) {
+ for (auto &service : g_arServices) {
auto it = service->InterceptedContacts.find(hContact);
if (it != service->InterceptedContacts.end())
service->InterceptedContacts.erase(it);
@@ -37,10 +37,8 @@ static int OnFileDialogCanceled(WPARAM hContact, LPARAM)
int OnModulesLoaded(WPARAM, LPARAM)
{
HookEvent(ME_PROTO_ACK, OnProtoAck);
-
- // srfile
HookEvent(ME_FILEDLG_CANCELED, OnFileDialogCanceled);
HookTemporaryEvent(ME_MSG_TOOLBARLOADED, OnSrmmToolbarLoaded);
return 0;
-} \ No newline at end of file
+}