summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_window.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-04-03 20:48:12 +0300
committeraunsane <aunsane@gmail.com>2018-04-03 20:48:28 +0300
commit88b7a6c4be4645c6c6cc2ca4446ad5543d429b62 (patch)
tree37af7ae74b3b8ee465ddefad1ff5ee8f55755e6d /plugins/TabSRMM/src/chat_window.cpp
parent7c41ab39dd92e9e7961615dcd19c0ffcc260f62b (diff)
TabSRMM: Chat filter works only after click #1242
Diffstat (limited to 'plugins/TabSRMM/src/chat_window.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_window.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp
index 561dc7d88c..5e282556cb 100644
--- a/plugins/TabSRMM/src/chat_window.cpp
+++ b/plugins/TabSRMM/src/chat_window.cpp
@@ -475,7 +475,6 @@ CChatRoomDlg::CChatRoomDlg(SESSION_INFO *si)
{
m_szProto = GetContactProto(m_hContact);
m_bFilterEnabled = db_get_b(m_hContact, CHAT_MODULE, "FilterEnabled", m_bFilterEnabled) != 0;
- Chat_SetFilters(m_si);
m_btnOk.OnClick = Callback(this, &CChatRoomDlg::onClick_OK);
m_btnFilter.OnClick = Callback(this, &CChatRoomDlg::onClick_Filter);
@@ -510,7 +509,9 @@ void CChatRoomDlg::OnInitDialog()
CTabBaseDlg::OnInitDialog();
m_si->pDlg = this;
-
+
+ Chat_SetFilters(m_si);
+
m_iSplitterY = m_pContainer->settings->iSplitterY;
if (m_bIsAutosizingInput)
m_iSplitterY = GetDefaultMinimumInputHeight();