summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-02 00:16:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-02 00:16:52 +0300
commit960a20dcd916e05fde9fb67cd42ad7f75f85a1f9 (patch)
tree995dae7d492b67f360132dfe415427f43b5f7103 /src/mir_app
parenta6f2b5fb358392a227e16566e4ad39832d74bb89 (diff)
fix for options dialog that isn't deleted after closing options
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/options.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mir_app/src/options.cpp b/src/mir_app/src/options.cpp
index b4c3af064c..1514647c0b 100644
--- a/src/mir_app/src/options.cpp
+++ b/src/mir_app/src/options.cpp
@@ -185,9 +185,8 @@ public:
lParam = m_lParam;
LRESULT res = m_wndProc(m_hwnd, msg, wParam, lParam);
-
- if (msg == WM_DESTROY)
- m_hwnd = NULL;
+ if (!res)
+ res = CDlgBase::DlgProc(msg, wParam, lParam);
return res;
}
@@ -227,8 +226,6 @@ struct OptionsPageData : public MZeroedObject
~OptionsPageData()
{
- if (pDialog && getHwnd() != NULL)
- DestroyWindow(getHwnd());
}
CDlgBase *pDialog;