summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-18 15:22:31 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-18 15:22:31 +0300
commit32a9d972483acb7f7f1af750b82bb1e855972873 (patch)
tree5d69623e46f341806afb75abb7e80706d4e333bd /plugins
parent6eafb411ed98a1bedde437e5354fa522a04bca4d (diff)
fixes #4128 (Пункт меню "показать отключенных в группе" ведёт себя странно)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Clist_modern/src/groupmenu.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/groupmenu.cpp b/plugins/Clist_modern/src/groupmenu.cpp
index 36f7d3b617..4c166d0fa2 100644
--- a/plugins/Clist_modern/src/groupmenu.cpp
+++ b/plugins/Clist_modern/src/groupmenu.cpp
@@ -48,9 +48,9 @@ static int OnBuildSubGroupMenu(WPARAM wParam, LPARAM)
return 0;
}
-static INT_PTR GroupMenuExecProxy(WPARAM wParam, LPARAM lParam)
+static INT_PTR GroupMenuExecProxy(WPARAM, LPARAM lParam)
{
- SendMessage(lParam ? (HWND)lParam : (HWND)g_clistApi.hwndContactTree, WM_COMMAND, wParam, 0);
+ SendMessage(g_clistApi.hwndContactTree, WM_COMMAND, lParam, 0);
return 0;
}
@@ -68,12 +68,13 @@ void InitGroupMenus(void)
HookEvent(ME_CLIST_PREBUILDGROUPMENU, OnBuildSubGroupMenu);
// add exit command to menu
- GroupMenuParam gmp = { POPUP_GROUPSHOWOFFLINE, 0 };
+ GroupMenuParam gmp = { 0, POPUP_GROUPSHOWOFFLINE };
SET_UID(mi, 0x7E081A28, 0x19B3, 0x407F, 0x80, 0x6B, 0x70, 0xC3, 0xC3, 0xA9, 0xD2, 0xA4);
mi.position = 900001;
- mi.pszService = "Modern/GroupMenuExecProxy";
mi.name.a = LPGEN("&Show offline users in here");
+ mi.hIcolibItem = nullptr;
+ mi.pszService = "Modern/GroupMenuExecProxy";
hShowOfflineUsersHereMenuItem = Menu_AddGroupMenuItem(&mi, &gmp);
CreateServiceFunction(mi.pszService, GroupMenuExecProxy);
}