summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-22 20:14:08 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-22 20:14:08 +0300
commitada46091f70dc47d85e45f086fc52df2ef034425 (patch)
tree548f21dce4257ca12a03110e3e00daf670254735
parent5dbd97ae09f42a2c1b62b156d2ec316d2bcdacf2 (diff)
fix for unpredictable groups behavior after dblclick on a group
-rw-r--r--src/mir_app/src/clcutils.cpp2
-rw-r--r--src/mir_app/src/clistgroups.cpp2
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);
}