diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-04 20:37:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-04 20:37:56 +0000 |
commit | 0cefda1f073df2d9170a2b8721ac80f1371a046f (patch) | |
tree | 6ef208af919f0fee237178038f0577939349eaa7 /plugins | |
parent | 8a4d920ac00055a4ae15bafcce0e696abea9d6b1 (diff) |
set handles first, only then exit
git-svn-id: http://svn.miranda-ng.org/main/trunk@10057 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
}
|