diff options
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/modern_clc.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 1663134546..850f6e5df5 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -383,15 +383,17 @@ static int clcSearchNextContact(HWND hwnd, ClcData *dat, int index, const TCHAR static BOOL clcItemNotHiddenOffline(ClcData *dat, ClcGroup* group, ClcContact *contact)
{
- if (!group || !contact) return FALSE;
- if (group->hideOffline) return FALSE;
if (g_CluiData.bFilterEffective) return FALSE;
- if (CLCItems_IsShowOfflineGroup(group)) return TRUE;
-
- ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry( contact->hContact);
- if ( !pdnce) return FALSE;
+ if (!contact) return FALSE;
+ ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry(contact->hContact);
+ if (!pdnce) return FALSE;
if (pdnce->m_cache_nNoHiddenOffline) return TRUE;
+
+ if (!group) return FALSE;
+ if (group->hideOffline) return FALSE;
+
+ if (CLCItems_IsShowOfflineGroup(group)) return TRUE;
return FALSE;
}
|