diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-23 12:26:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-23 12:26:03 +0000 |
commit | 0c4dc97b703e93e2503c9cabedaa6c42984d0f00 (patch) | |
tree | f1a46a67fe7bb62ed8556d0a0a8cecb65baddea3 /plugins/Clist_modern/src/modern_clc.cpp | |
parent | 9f0105daab3c080213ebb30d3a6449bb3d77e37f (diff) |
- we don't drop data cache upon the embedded clists rebuild;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16862 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clc.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clc.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 5cf0d6f8ba..febdac5d3a 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -1463,21 +1463,12 @@ static LRESULT clcOnIntmTimeZoneChanged(ClcData *dat, HWND hwnd, UINT msg, WPARA static LRESULT clcOnIntmNameChanged(ClcData *dat, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
- int ret = corecli.pfnContactListControlWndProc(hwnd, msg, wParam, lParam);
-
- pcli->pfnInvalidateDisplayNameCacheEntry(wParam);
+ LRESULT ret = corecli.pfnContactListControlWndProc(hwnd, msg, wParam, lParam);
ClcContact *contact;
- if (!FindItem(hwnd, dat, wParam, &contact, NULL, NULL, false))
- return ret;
-
- if (contact) {
- mir_tstrncpy(contact->szText, pcli->pfnGetContactDisplayName(wParam, 0), _countof(contact->szText));
+ if (FindItem(hwnd, dat, wParam, &contact, NULL, NULL, false))
Cache_GetText(dat, contact);
- // cliRecalcScrollBar(hwnd, dat);
- }
- dat->needsResort = 1;
return ret;
}
@@ -1536,7 +1527,7 @@ static LRESULT clcOnIntmScrollBarChanged(ClcData *dat, HWND hwnd, UINT, WPARAM, static LRESULT clcOnIntmStatusChanged(ClcData *dat, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
- int ret = corecli.pfnContactListControlWndProc(hwnd, msg, wParam, lParam);
+ LRESULT ret = corecli.pfnContactListControlWndProc(hwnd, msg, wParam, lParam);
if (wParam != 0) {
ClcContact *contact;
|