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 /plugins/Clist_modern/src/modern_clistmod.cpp | |
parent | 7352a4a4329f0d91f6b69da785891f917d261827 (diff) |
there's no need to load contacts from unloaded protocols
Diffstat (limited to 'plugins/Clist_modern/src/modern_clistmod.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clistmod.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_clistmod.cpp b/plugins/Clist_modern/src/modern_clistmod.cpp index c977d85886..650bd4181a 100644 --- a/plugins/Clist_modern/src/modern_clistmod.cpp +++ b/plugins/Clist_modern/src/modern_clistmod.cpp @@ -79,8 +79,8 @@ int cli_IconFromStatusMode(const char *szProto, int nStatus, MCONTACT hContact) MCONTACT hMostOnlineContact = db_mc_getMostOnline(hActContact);
if (hMostOnlineContact) {
ClcCacheEntry *cacheEntry = pcli->pfnGetCacheEntry(hMostOnlineContact);
- if (cacheEntry && cacheEntry->m_pszProto) {
- szActProto = cacheEntry->m_pszProto;
+ if (cacheEntry && cacheEntry->szProto) {
+ szActProto = cacheEntry->szProto;
nActStatus = cacheEntry->m_iStatus;
hActContact = hMostOnlineContact;
}
@@ -115,7 +115,7 @@ int cli_GetContactIcon(MCONTACT hContact) int GetContactIconC(ClcCacheEntry *p)
{
- return pcli->pfnIconFromStatusMode(p->m_pszProto, p->m_pszProto == nullptr ? ID_STATUS_OFFLINE : p->m_iStatus, p->hContact);
+ return pcli->pfnIconFromStatusMode(p->szProto, p->szProto == nullptr ? ID_STATUS_OFFLINE : p->m_iStatus, p->hContact);
}
//lParam
|