diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-26 13:49:11 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-26 13:49:11 +0300 |
commit | 5bf6e61b1d63c64109b495b30d3609fe0f057884 (patch) | |
tree | 6800ccdd76c37178af99fbddd3a87ede0b6394b1 | |
parent | b8ebaa0bdb6be17e014d7a382b86af8c028cf00d (diff) |
common code moved to the core
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 5 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 3 | ||||
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 5 | ||||
-rw-r--r-- | src/mir_app/src/srmm_base.cpp | 3 |
4 files changed, 3 insertions, 13 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 71ba4bb8a8..2299640531 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -120,11 +120,6 @@ bool CMsgDialog::OnInitDialog() {
CSuper::OnInitDialog();
- if (m_si) {
- m_si->pDlg = this;
- Chat_SetFilters(m_si);
- }
-
NotifyEvent(MSG_WINDOW_EVT_OPENING);
if (m_hContact && m_szProto != nullptr)
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 13fa713f86..f3c43f7fc6 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -410,9 +410,6 @@ bool CMsgDialog::OnInitDialog() m_cache->updateMeta();
if (isChat()) {
- m_si->pDlg = this;
- Chat_SetFilters(m_si);
-
m_pPanel.getVisibility();
m_pPanel.Configure();
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 9de8fd65a1..a6e85f433b 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -95,11 +95,6 @@ bool CMsgDialog::OnInitDialog() {
CSuper::OnInitDialog();
- if (m_si) {
- m_si->pDlg = this;
- Chat_SetFilters(m_si);
- }
-
m_szProto = Proto_GetBaseAccountName(m_hContact);
m_bIsMeta = db_mc_isMeta(m_hContact) != 0;
m_hTimeZone = TimeZone_CreateByContact(m_hContact, nullptr, TZF_KNOWNONLY);
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 3f69bf8fed..c1009298a1 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -532,6 +532,9 @@ bool CSrmmBaseDialog::OnInitDialog() ::DragAcceptFiles(m_message.GetHwnd(), TRUE);
if (isChat()) {
+ m_si->pDlg = (CMsgDialog*)this;
+ Chat_SetFilters(m_si);
+
if (m_si->bHasNicklist) {
SetWindowLongPtr(m_nickList.GetHwnd(), GWLP_USERDATA, LPARAM(this));
mir_subclassWindow(m_nickList.GetHwnd(), stubNicklistProc);
|