From 22977408e43caa45687e0c9d5a003b800700bea9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Apr 2018 17:01:26 +0300 Subject: if a user's avatar was changed, redraw it and all related objects (including thumb window in a taskbar) fixes #1249 --- plugins/TabSRMM/src/msgdialog.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src/msgdialog.cpp') 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: -- cgit v1.2.3