From 7e8aa70c724e6b72817cba090b7b178fd7f86341 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 Mar 2016 17:32:31 +0000 Subject: fixes bug #1104 (wrong cache implementation in clist_modern) git-svn-id: http://svn.miranda-ng.org/main/trunk@16523 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clcitems.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/Clist_modern/src/modern_clcitems.cpp') diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp index ea1a517577..f080b24bc5 100644 --- a/plugins/Clist_modern/src/modern_clcitems.cpp +++ b/plugins/Clist_modern/src/modern_clcitems.cpp @@ -174,7 +174,6 @@ static void _LoadDataToContact(ClcContact *cont, ClcGroup *group, ClcData *dat, cont->flags |= CONTACTF_ONLINE; WORD apparentMode = szProto != NULL ? cacheEntry->ApparentMode : 0; - if (apparentMode) switch (apparentMode) { case ID_STATUS_OFFLINE: @@ -618,6 +617,13 @@ ClcCacheEntry* cliCreateCacheItem(MCONTACT hContact) p->hContact = hContact; InvalidateDNCEbyPointer(hContact, p, 0); + + p->bIsHidden = -1; + p->m_cache_nNoHiddenOffline = -1; + p->IdleTS = -1; + p->NotOnList = -1; + p->IsExpanded = -1; + p->szSecondLineText = NULL; p->szThirdLineText = NULL; p->ssSecondLine.plText = NULL; -- cgit v1.2.3