summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clcitems.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-25 21:15:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-25 21:15:00 +0000
commit340562e4bd9236fadf2e37ae6f7737f1ea340a90 (patch)
tree2a52777a0bc121512dada9a3354779bed74e75db /plugins/Clist_modern/src/modern_clcitems.cpp
parent3a944a0e98389dc453b25908ac41c488eb829eeb (diff)
fix for the broken Options -> Contact list -> Contact names dialog
git-svn-id: http://svn.miranda-ng.org/main/trunk@6630 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcitems.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clcitems.cpp13
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)