summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-12 11:05:24 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-12 11:05:24 +0300
commitf36247eab2f746a3ba996634e985907ee0ccdb7c (patch)
treedd2690e447484bb6a3c84bce52bf484e1a2ecab7 /src/mir_app
parentb0b3aebba93326ae720e3830ea0fb62090f3f40c (diff)
fixes #4189 (Невозможно удалить пустую группу)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/clc.cpp1
-rw-r--r--src/mir_app/src/clistgroups.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp
index 9f4d32e9a6..fe5b974b8e 100644
--- a/src/mir_app/src/clc.cpp
+++ b/src/mir_app/src/clc.cpp
@@ -380,6 +380,7 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT uMsg, WPARAM wParam
Clist_SaveStateAndRebuildList(hwnd, dat);
}
+ else Clist_InitAutoRebuild(hwnd);
break;
case INTM_NAMEORDERCHANGED:
diff --git a/src/mir_app/src/clistgroups.cpp b/src/mir_app/src/clistgroups.cpp
index 1eed779556..82d9aea971 100644
--- a/src/mir_app/src/clistgroups.cpp
+++ b/src/mir_app/src/clistgroups.cpp
@@ -263,11 +263,12 @@ MIR_APP_DLL(int) Clist_GroupDelete(MGROUP hGroup)
SetCursor(LoadCursor(nullptr, IDC_ARROW));
Clist_LoadContactTree();
+ Clist_BroadcastAsync(INTM_GROUPSCHANGED, 0, 0);
const CLISTGROUPCHANGE grpChg = { wszOldName, nullptr };
NotifyEventHooks(hGroupChangeEvent, 0, (LPARAM)&grpChg);
- delete(pGroup);
+ delete pGroup;
return 0;
}