summaryrefslogtreecommitdiff
path: root/src
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 /src
parent6eafb411ed98a1bedde437e5354fa522a04bca4d (diff)
fixes #4128 (Пункт меню "показать отключенных в группе" ведёт себя странно)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/menu_groups.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mir_app/src/menu_groups.cpp b/src/mir_app/src/menu_groups.cpp
index a8dccf8e77..1a1eba0e3b 100644
--- a/src/mir_app/src/menu_groups.cpp
+++ b/src/mir_app/src/menu_groups.cpp
@@ -59,10 +59,8 @@ MIR_APP_DLL(HGENMENU) Menu_AddGroupMenuItem(TMO_MenuItem *pmi, GroupMenuParam *g
// we need just one parametr.
mmep->szServiceName = mir_strdup(pmi->pszService);
- if (gmp != nullptr) {
- mmep->Param1 = gmp->wParam;
+ if (gmp != nullptr)
mmep->Param2 = gmp->lParam;
- }
HGENMENU hNewItem = Menu_AddItem(hGroupMenuObject, pmi, mmep);
@@ -80,10 +78,8 @@ static INT_PTR GroupMenuCheckService(WPARAM wParam, LPARAM)
TCheckProcParam *CParam = (TCheckProcParam *)wParam;
if (CParam) {
GroupMenuExecParam *mmep = (GroupMenuExecParam *)(CParam->MenuItemOwnerData);
- if (mmep) {
+ if (mmep)
mmep->Param1 = CParam->wParam;
- mmep->Param2 = CParam->lParam;
- }
}
return 1;
}