diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-29 18:53:50 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-29 18:53:50 +0300 |
commit | cde343bc79a8af644caa2593a334cd89ed1a0f55 (patch) | |
tree | f754313bd861999bc56a29006ec28f48c7b97149 /src/mir_app | |
parent | 703f9873a6ba22dacf3622ea8297293d4f72b869 (diff) |
fixes #4078 (Сделать меню групп доступнее)
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/clc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp index eac546954e..c7578afef0 100644 --- a/src/mir_app/src/clc.cpp +++ b/src/mir_app/src/clc.cpp @@ -1233,10 +1233,14 @@ LBL_MoveSelection: if (contact->type == CLCIT_GROUP) {
switch (LOWORD(wParam)) {
+ case POPUP_NEWGROUP:
case POPUP_NEWSUBGROUP:
SetWindowLongPtr(hwnd, GWL_STYLE, GetWindowLongPtr(hwnd, GWL_STYLE) & ~CLS_HIDEEMPTYGROUPS);
SetWindowLongPtr(hwnd, GWL_STYLE, GetWindowLongPtr(hwnd, GWL_STYLE) | CLS_USEGROUPS);
- Clist_GroupCreate(contact->groupId, nullptr);
+ if (LOWORD(wParam) == POPUP_NEWGROUP)
+ Clist_GroupCreate(0, nullptr);
+ else
+ Clist_GroupCreate(contact->groupId, nullptr);
break;
case POPUP_RENAMEGROUP:
g_clistApi.pfnBeginRenameSelection(hwnd, dat);
|