summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/infopanel.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-31 19:01:27 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-31 19:01:27 +0000
commit3e5959daa64de93186b2dceaeaf0a85c0535a5c6 (patch)
tree63b8714af89ef32951af2411e33b2b49520fdbbf /plugins/TabSRMM/src/infopanel.cpp
parent4b25736d4b3565e4e9945d191d15e0740dce6afc (diff)
fix for correct info panel closing
git-svn-id: http://svn.miranda-ng.org/main/trunk@10007 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/infopanel.cpp')
-rw-r--r--plugins/TabSRMM/src/infopanel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp
index 1adf6eaf6f..c34d587500 100644
--- a/plugins/TabSRMM/src/infopanel.cpp
+++ b/plugins/TabSRMM/src/infopanel.cpp
@@ -174,7 +174,12 @@ void CInfoPanel::showHide() const
HWND hwndDlg = m_dat->hwnd;
if (!m_isChat) {
- ::ShowWindow(m_dat->hwndPanelPicParent, (m_active && m_dat->hwndPanelPic) ? SW_SHOW : SW_HIDE);
+ ::ShowWindow(m_dat->hwndPanelPicParent, (m_active) ? SW_SHOW : SW_HIDE);
+
+ if (!m_active && m_dat->hwndPanelPic) {
+ ::DestroyWindow(m_dat->hwndPanelPic);
+ m_dat->hwndPanelPic = NULL;
+ }
m_dat->iRealAvatarHeight = 0;
::AdjustBottomAvatarDisplay(m_dat);