diff options
author | George Hazan <george.hazan@gmail.com> | 2023-05-29 21:02:04 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-05-29 21:02:04 +0300 |
commit | fa4668dc4544ef59ec97bcbe7899c1f1d0cbcf83 (patch) | |
tree | b66373260a0d6b8a5cd35e0c55c61514f0db3e36 | |
parent | dcaf0abe0785077be336c5ff969ac03c55153588 (diff) |
old unused crutch removed
-rw-r--r-- | src/mir_app/src/menu_groups.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mir_app/src/menu_groups.cpp b/src/mir_app/src/menu_groups.cpp index 3460d68b1d..7485114051 100644 --- a/src/mir_app/src/menu_groups.cpp +++ b/src/mir_app/src/menu_groups.cpp @@ -80,12 +80,7 @@ INT_PTR GroupMenuExecService(WPARAM wParam, LPARAM lParam) {
if (wParam != 0) {
GroupMenuExecParam *mmep = (GroupMenuExecParam *)wParam;
- if (!mir_strcmp(mmep->szServiceName, "Help/AboutCommand")) {
- //bug in help.c,it used wparam as parent window handle without reason.
- mmep->Param1 = 0;
- CallService(mmep->szServiceName, mmep->Param1, lParam);
- }
- else CallService(mmep->szServiceName, mmep->Param1, mmep->Param2);
+ CallService(mmep->szServiceName, mmep->Param1, mmep->Param2);
}
return 1;
}
@@ -223,12 +218,7 @@ static INT_PTR SubGroupMenuExecService(WPARAM wParam, LPARAM lParam) {
if (wParam != 0) {
SubGroupMenuExecParam *mmep = (SubGroupMenuExecParam *)wParam;
- if (!mir_strcmp(mmep->szServiceName, "Help/AboutCommand")) {
- //bug in help.c,it used wparam as parent window handle without reason.
- mmep->Param1 = 0;
- CallService(mmep->szServiceName, mmep->Param1, lParam);
- }
- else CallService(mmep->szServiceName, mmep->Param1, lParam);
+ CallService(mmep->szServiceName, mmep->Param1, lParam);
}
return 1;
}
|