diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-16 20:08:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-16 20:08:09 +0300 |
commit | 34d7210674084cde22d78d6f7dc8f0fb5c282185 (patch) | |
tree | 1ab3ef957e4596bcefd0290ec26de4d3c2461a3b /src | |
parent | bfd8b4efe0bf6dbcf2453c4d735d45c3b96f87b9 (diff) |
Clist_GroupBuildMenu: fix to use menu id as MGROUP
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clistgroups.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/clistgroups.cpp b/src/mir_app/src/clistgroups.cpp index 22dc25f11a..38861a7a2f 100644 --- a/src/mir_app/src/clistgroups.cpp +++ b/src/mir_app/src/clistgroups.cpp @@ -448,11 +448,13 @@ MIR_APP_DLL(void) Clist_SetGroup(MCONTACT hContact, const wchar_t *pwszName) /////////////////////////////////////////////////////////////////////////////////////////
-MIR_APP_DLL(HMENU) Clist_GroupBuildMenu(int nextMenuId)
+MIR_APP_DLL(HMENU) Clist_GroupBuildMenu(int startId)
{
if (arByIds.getCount() == 0)
return nullptr;
+ int nextMenuId = startId + 1; // to use it as MGROUP then
+
HMENU hRootMenu = CreateMenu();
for (int i = 0; i < arByIds.getCount(); i++) {
const wchar_t *pNextField = arByIds[i]->groupName + 1;
|