From 34d7210674084cde22d78d6f7dc8f0fb5c282185 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 16 May 2021 20:08:09 +0300 Subject: Clist_GroupBuildMenu: fix to use menu id as MGROUP --- src/mir_app/src/clistgroups.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3