From 0cefda1f073df2d9170a2b8721ac80f1371a046f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 4 Aug 2014 20:37:56 +0000 Subject: set handles first, only then exit git-svn-id: http://svn.miranda-ng.org/main/trunk@10057 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdlgutils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index c0f1bf62d6..c208ff6b74 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -614,14 +614,14 @@ bool TSAPI GetAvatarVisibility(HWND hwndDlg, TWindowData *dat) dat->bShowAvatar = hideOverride == 1 ? 1 : dat->bShowAvatar; // reloads avatars - if (!dat->bShowAvatar) - return false; - if (dat->hwndPanelPic) { // shows contact or user picture, depending on panel visibility SendMessage(dat->hwndContactPic, AVATAR_SETPROTOCOL, 0, (LPARAM)dat->cache->getActiveProto()); Utils::setAvatarContact(dat->hwndPanelPic, dat->hContact); } else Utils::setAvatarContact(dat->hwndContactPic, dat->hContact); + + if (!dat->bShowAvatar) + return false; } return dat->bShowAvatar; } -- cgit v1.2.3