From 5046973a41e412afd06d6a78a3b9bce226e3cf50 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Mar 2018 17:28:53 +0300 Subject: fix for writing "Chat/FilterEnabled" BYTE=1 into the database --- plugins/TabSRMM/src/chat_window.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp index 042d6800f5..561dc7d88c 100644 --- a/plugins/TabSRMM/src/chat_window.cpp +++ b/plugins/TabSRMM/src/chat_window.cpp @@ -1657,10 +1657,13 @@ INT_PTR CALLBACK CChatRoomDlg::FilterWndProc(HWND hwndDlg, UINT uMsg, WPARAM wPa db_set_dw(pDlg->m_hContact, CHAT_MODULE, "TrayIconMask", dwMask); } Chat_SetFilters(pDlg->m_si); - if (pDlg->m_iLogFilterFlags == 0 && pDlg->m_bFilterEnabled) - pDlg->onClick_Filter(&pDlg->m_btnFilter); - if (pDlg->m_bFilterEnabled) + + if (pDlg->m_bFilterEnabled) { + if (pDlg->m_iLogFilterFlags == 0) + pDlg->onClick_Filter(&pDlg->m_btnFilter); pDlg->RedrawLog(); + db_set_b(pDlg->m_hContact, CHAT_MODULE, "FilterEnabled", pDlg->m_bFilterEnabled); + } } } DestroyWindow(hwndDlg); -- cgit v1.2.3