diff options
Diffstat (limited to 'plugins/TabSRMM/src/infopanel.cpp')
-rw-r--r-- | plugins/TabSRMM/src/infopanel.cpp | 7 |
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);
|