summaryrefslogtreecommitdiff
path: root/protocols/CloudFile/src/srmm.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-11 13:40:09 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-11 13:40:09 +0300
commitc0ff932b9b6ba685160204fee0af84930f7aa922 (patch)
tree6b922da9dd5705c168d40f2eb691e453ddbf0713 /protocols/CloudFile/src/srmm.cpp
parent99584f314758d7ee3ef5faead704546ad0fdc10a (diff)
fixes #4975 (CloudFile: нужно убирать учётку из подменю в меню контакта при её отключении) + some code cleaning
Diffstat (limited to 'protocols/CloudFile/src/srmm.cpp')
-rw-r--r--protocols/CloudFile/src/srmm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/CloudFile/src/srmm.cpp b/protocols/CloudFile/src/srmm.cpp
index 558b86fdd4..79d012c7cb 100644
--- a/protocols/CloudFile/src/srmm.cpp
+++ b/protocols/CloudFile/src/srmm.cpp
@@ -51,14 +51,14 @@ int OnSrmmButtonPressed(WPARAM, LPARAM lParam)
}
HMENU hMenu = CreatePopupMenu();
- for (auto &it : Services)
- AppendMenu(hMenu, MF_STRING, Services.indexOf(&it) + 1, TranslateW(it->GetUserName()));
+ for (auto &it : g_arServices)
+ AppendMenu(hMenu, MF_STRING, g_arServices.indexOf(&it) + 1, TranslateW(it->m_tszUserName));
int pos = TrackPopupMenu(hMenu, TPM_RETURNCMD, cbc->pt.x, cbc->pt.y, 0, cbc->hwndFrom, nullptr);
DestroyMenu(hMenu);
if (pos > 0) {
- CCloudService *service = Services[pos - 1];
+ CCloudService *service = g_arServices[pos - 1];
service->OpenUploadDialog(cbc->hContact);
}