diff options
-rw-r--r-- | src/mir_app/src/clcidents.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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) {
|