diff options
author | George Hazan <ghazan@miranda.im> | 2021-03-06 15:11:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-03-06 15:11:13 +0300 |
commit | f244ce4384d6ec57897df4d83c412ac659d32f8c (patch) | |
tree | 61121d0ce8971699a2db341b606412a30b7e7887 | |
parent | e1a0ac05c7df7e238d931ddce9efb4e332089c90 (diff) |
m_bIsUnknown should be assigned anyway
-rw-r--r-- | plugins/Clist_modern/src/modern_clistsettings.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Clist_modern/src/modern_clistsettings.cpp b/plugins/Clist_modern/src/modern_clistsettings.cpp index 5136c50c69..7a92e6d13f 100644 --- a/plugins/Clist_modern/src/modern_clistsettings.cpp +++ b/plugins/Clist_modern/src/modern_clistsettings.cpp @@ -55,9 +55,10 @@ void cliCheckCacheItem(ClcCacheEntry *pdnce) if (pdnce->tszName == nullptr) {
pdnce->tszName = Clist_GetContactDisplayName(pdnce->hContact, GCDNF_NOCACHE | GCDNF_NOUNKNOWN);
if (!pdnce->tszName) {
- pdnce->m_bIsUnknown = true;
pdnce->tszName = mir_wstrdup(TranslateT("(Unknown contact)"));
+ pdnce->m_bIsUnknown = true;
}
+ else pdnce->m_bIsUnknown = false;
}
if (pdnce->m_iStatus == 0) //very strange look status sort is broken let always reread status
|