From 5f63ad8fb27e6d6751215f19422b836ae4605416 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Dec 2020 20:24:04 +0300 Subject: fixes #2593 (Always/Never- Mute icons are not visible until restart) --- src/mir_app/src/clcidents.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/clcidents.cpp b/src/mir_app/src/clcidents.cpp index f6b720192c..07a3981371 100644 --- a/src/mir_app/src/clcidents.cpp +++ b/src/mir_app/src/clcidents.cpp @@ -108,10 +108,11 @@ MIR_APP_DLL(bool) Clist_FindItem(HWND hwnd, ClcData *dat, DWORD dwItem, ClcConta group->scanIndex++; continue; } - if (nowVisible) - index++; ClcContact *cc = group->cl[group->scanIndex]; + if (nowVisible && cc->type != CLCIT_GROUP) + index++; + ClcContact *res = g_clistApi.pfnFindItem(dwItem, cc); if (res != nullptr) { if (isVisible) { -- cgit v1.2.3