From bb00cb91a13b2afefa650e5f3ae192e00ec5d719 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 9 Nov 2024 18:46:43 +0300 Subject: there's no need to make FilterWndProc a class member anymore --- plugins/TabSRMM/src/msgdialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src/msgdialog.cpp') diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 587c078d9a..476d42eb5f 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -923,8 +923,10 @@ void CMsgDialog::onClick_Filter(CCtrlButton *pButton) if (m_bFilterEnabled && !g_chatApi.bRightClickFilter) ShowFilterMenu(); else { - if (m_hwndFilter) - SendMessage(m_hwndFilter, WM_CLOSE, 1, 1); + if (m_hwndFilter) { + SendMessage(m_hwndFilter, WM_CLOSE, 0, 0); + m_hwndFilter = nullptr; + } RedrawLog(); UpdateTitle(); -- cgit v1.2.3