summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clcitems.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-03-22 17:32:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-03-22 17:32:31 +0000
commit7e8aa70c724e6b72817cba090b7b178fd7f86341 (patch)
treec5c4be0c062f5d0426afe8d37eae03be52c46eb1 /plugins/Clist_modern/src/modern_clcitems.cpp
parentd2c91898a866006be4bd56b00e5cd36112ca5e06 (diff)
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
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcitems.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clcitems.cpp8
1 files changed, 7 insertions, 1 deletions
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;