summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Clist_modern/src/init.cpp2
-rw-r--r--plugins/Clist_modern/src/modern_clcitems.cpp13
2 files changed, 9 insertions, 6 deletions
diff --git a/plugins/Clist_modern/src/init.cpp b/plugins/Clist_modern/src/init.cpp
index ba005f236a..86d22f0929 100644
--- a/plugins/Clist_modern/src/init.cpp
+++ b/plugins/Clist_modern/src/init.cpp
@@ -140,7 +140,7 @@ static HRESULT SubclassClistInterface()
pcli->pfnCheckCacheItem = cliCheckCacheItem;
pcli->pfnFreeCacheItem = cliFreeCacheItem;
- pcli->pfnInvalidateDisplayNameCacheEntry = cliInvalidateDisplayNameCacheEntry;
+ pcli->pfnInvalidateDisplayNameCacheEntry = cliInvalidateDisplayNameCacheEntry;
pcli->pfnTrayIconPauseAutoHide = cliTrayIconPauseAutoHide;
pcli->pfnTrayCalcChanged = cliTrayCalcChanged;
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp
index 1bcac75ec1..e8dcc382e2 100644
--- a/plugins/Clist_modern/src/modern_clcitems.cpp
+++ b/plugins/Clist_modern/src/modern_clcitems.cpp
@@ -641,11 +641,14 @@ ClcCacheEntry* cliCreateCacheItem( HANDLE hContact )
}
void cliInvalidateDisplayNameCacheEntry(HANDLE hContact)
-{
- ClcCacheEntry *p = pcli->pfnGetCacheEntry(hContact);
- if (p)
- InvalidateDNCEbyPointer(hContact,p,0);
- return;
+{
+ if (hContact == INVALID_HANDLE_VALUE)
+ corecli.pfnInvalidateDisplayNameCacheEntry(INVALID_HANDLE_VALUE);
+ else {
+ ClcCacheEntry *p = pcli->pfnGetCacheEntry(hContact);
+ if (p)
+ InvalidateDNCEbyPointer(hContact,p,0);
+ }
}
char* cli_GetGroupCountsText(ClcData *dat, ClcContact *contact)