diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-27 18:39:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-27 18:39:07 +0300 |
commit | 7eaccc7d1af879e2a8c58364ca0c11816225dfe0 (patch) | |
tree | bdef114c786c6f372da0b76317d58c5373534e8d /src | |
parent | 7352a4a4329f0d91f6b69da785891f917d261827 (diff) |
there's no need to load contacts from unloaded protocols
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clcitems.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/clistsettings.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_app/src/clcitems.cpp b/src/mir_app/src/clcitems.cpp index 45bcaee71c..4a6a537463 100644 --- a/src/mir_app/src/clcitems.cpp +++ b/src/mir_app/src/clcitems.cpp @@ -363,6 +363,8 @@ void fnRebuildEntireList(HWND hwnd, ClcData *dat) int nHiddenStatus = cli.pfnGetContactHiddenStatus(hContact, nullptr, dat); if (((style & CLS_SHOWHIDDEN) && nHiddenStatus != -1) || !nHiddenStatus) { ClcCacheEntry *pce = cli.pfnGetCacheEntry(hContact); + if (pce->szProto == nullptr) + continue; ClcGroup *group; ptrW tszGroupName(db_get_wsa(hContact, "CList", "Group")); diff --git a/src/mir_app/src/clistsettings.cpp b/src/mir_app/src/clistsettings.cpp index c2272920f8..b81767e776 100644 --- a/src/mir_app/src/clistsettings.cpp +++ b/src/mir_app/src/clistsettings.cpp @@ -49,6 +49,7 @@ ClcCacheEntry* fnCreateCacheItem(MCONTACT hContact) return nullptr;
p->hContact = hContact;
+ p->szProto = GetContactProto(hContact);
return p;
}
|