diff options
author | George Hazan <george.hazan@gmail.com> | 2025-04-11 13:40:09 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-04-11 13:40:09 +0300 |
commit | c0ff932b9b6ba685160204fee0af84930f7aa922 (patch) | |
tree | 6b922da9dd5705c168d40f2eb691e453ddbf0713 /protocols/CloudFile/src/events.cpp | |
parent | 99584f314758d7ee3ef5faead704546ad0fdc10a (diff) |
fixes #4975 (CloudFile: нужно убирать учётку из подменю в меню контакта при её отключении) + some code cleaning
Diffstat (limited to 'protocols/CloudFile/src/events.cpp')
-rw-r--r-- | protocols/CloudFile/src/events.cpp | 6 |
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 +} |