diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-16 17:28:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-16 17:28:53 +0300 |
commit | 5046973a41e412afd06d6a78a3b9bce226e3cf50 (patch) | |
tree | 351e5aa8d3978a82dd5e12f36760de2cd051ec1f /plugins/TabSRMM/src | |
parent | ecee3cf571be168342936201457d00d094239a80 (diff) |
fix for writing "Chat/FilterEnabled" BYTE=1 into the database
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r-- | plugins/TabSRMM/src/chat_window.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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); |