summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/chat_window.cpp9
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);