diff options
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcitems.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcitems.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
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)
|