diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-30 19:29:05 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-30 19:29:05 +0300 |
commit | 741981732e0db3e4335c246fb511e02cce8946c6 (patch) | |
tree | 4997a7ef7b3e992887b485640aacffeda59f8608 /plugins/TabSRMM | |
parent | d7cfa58ec87acc7014a907a932f0db59959bbcd6 (diff) |
fixes #3470 completely
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat_tools.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdlgother.cpp | 13 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgs.h | 1 |
4 files changed, 2 insertions, 16 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index ecba3d95b2..7ad4525575 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -371,7 +371,7 @@ void Chat_SetFilters(SESSION_INFO *si) dwFlags = (dwFlags_local & dwBit) ? dwFlags | dwBit : dwFlags & ~dwBit;
}
- pDlg->SetFilter(dwFlags);
+ pDlg->m_iLogFilterFlags = dwFlags;
}
uint32_t dwFlags_local = db_get_dw(si->hContact, CHAT_MODULE, "PopupFlags", GC_EVENT_HIGHLIGHT);
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 32bf54c22d..75e977a799 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -1000,7 +1000,7 @@ void CMsgDialog::onClick_Filter(CCtrlButton *pButton) db_set_b(m_si->hContact, CHAT_MODULE, "FilterEnabled", m_bFilterEnabled);
Chat_SetFilters(m_si);
- if (m_bFilterEnabled && !g_chatApi.bRightClickFilter)
+ if (m_bFilterEnabled && !g_chatApi.bRightClickFilter)
ShowFilterMenu();
else {
RedrawLog();
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index a570c184bc..7fd05e5861 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -1978,19 +1978,6 @@ void TSAPI CleanTempFiles() }
/////////////////////////////////////////////////////////////////////////////////////////
-
-void CMsgDialog::SetFilter(uint32_t dwFlags)
-{
- m_iLogFilterFlags = dwFlags;
-
- if (dwFlags == 0) {
- m_bFilterEnabled = false;
- m_btnFilter.Disable();
- }
- else m_btnFilter.Enable();
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
// Sets a status bar text for a contact
void CMsgDialog::SetStatusText(const wchar_t *wszText, HICON hIcon)
diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h index 900a55b450..6d05b1a25f 100644 --- a/plugins/TabSRMM/src/msgs.h +++ b/plugins/TabSRMM/src/msgs.h @@ -691,7 +691,6 @@ public: void SaveSplitter(void);
void SelectContainer(void);
void SetDialogToType(void);
- void SetFilter(uint32_t dwFlags);
void ShowPicture(bool showNewPic);
void SplitterMoved(int x, HWND hwnd);
void SwitchToContainer(const wchar_t *szNewName);
|