From 3876f9c668826a2da2f306683fff6243fa522c4e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 2 Apr 2018 16:32:21 +0300 Subject: Clist_modern: unloaded protos not to be included into expanded subs too --- plugins/Clist_modern/src/modern_clcitems.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/Clist_modern') diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp index 7e8cccfdd3..557f4edbe3 100644 --- a/plugins/Clist_modern/src/modern_clcitems.cpp +++ b/plugins/Clist_modern/src/modern_clcitems.cpp @@ -47,8 +47,10 @@ void AddSubcontacts(ClcData *dat, ClcContact *cont, BOOL showOfflineHereGroup) continue; ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry(hsub); - WORD wStatus = pdnce->getStatus(); + if (pdnce->szProto == nullptr) + continue; + WORD wStatus = pdnce->getStatus(); if (!showOfflineHereGroup && bHideOffline && !pdnce->m_bNoHiddenOffline && wStatus == ID_STATUS_OFFLINE) continue; -- cgit v1.2.3