From ada46091f70dc47d85e45f086fc52df2ef034425 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Jan 2024 20:14:08 +0300 Subject: fix for unpredictable groups behavior after dblclick on a group --- src/mir_app/src/clcutils.cpp | 2 +- src/mir_app/src/clistgroups.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mir_app/src/clcutils.cpp b/src/mir_app/src/clcutils.cpp index bb062926ce..aa9da379ad 100644 --- a/src/mir_app/src/clcutils.cpp +++ b/src/mir_app/src/clcutils.cpp @@ -341,7 +341,7 @@ MIR_APP_DLL(void) Clist_DoSelectionDefaultAction(HWND hwnd, ClcData *dat) if (contact->type == CLCIT_GROUP) Clist_SetGroupExpand(hwnd, dat, contact->group, -1); - if (contact->type == CLCIT_CONTACT) + else if (contact->type == CLCIT_CONTACT) Clist_ContactDoubleClicked(contact->hContact); if (dat->bFilterSearch && bSearchExisted) diff --git a/src/mir_app/src/clistgroups.cpp b/src/mir_app/src/clistgroups.cpp index 8bc65e137e..1eed779556 100644 --- a/src/mir_app/src/clistgroups.cpp +++ b/src/mir_app/src/clistgroups.cpp @@ -89,7 +89,7 @@ CGroupInternal::~CGroupInternal() void CGroupInternal::save() { - Clist_Broadcast(INTM_GROUPSCHANGED, 0, LPARAM(this)); + Clist_BroadcastAsync(INTM_GROUPSCHANGED, 0, LPARAM(this)); g_pTimer->Start(1000); } -- cgit v1.2.3