summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdialog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-11 17:01:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-11 17:01:26 +0300
commit22977408e43caa45687e0c9d5a003b800700bea9 (patch)
treefea533846f3297c8fe02044e26df9af1808f85dc /plugins/TabSRMM/src/msgdialog.cpp
parentcfd7dee86b0cc9eb8ac8c87e9b2b4b356d462056 (diff)
if a user's avatar was changed, redraw it and all related objects (including thumb window in a taskbar)
fixes #1249
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 9ad0a15ea4..4131d2a048 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -2472,15 +2472,17 @@ INT_PTR CSrmmWindow::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_ACTIVATE:
if (LOWORD(wParam) != WA_ACTIVE)
break;
+ // fall through
- //fall through
case WM_MOUSEACTIVATE:
MsgWindowUpdateState(WM_ACTIVATE);
return 1;
case DM_UPDATEPICLAYOUT:
- LoadContactAvatar();
- Resize();
+ if (wParam == 0 || wParam == m_hContact) {
+ LoadContactAvatar();
+ Resize();
+ }
return 0;
case DM_SPLITTERMOVED: