diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-30 16:58:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-30 16:58:24 +0300 |
commit | 3ee69607b2594b47d1d5da10bd3b5c30e60d9114 (patch) | |
tree | bd5fd6dddd509a0af7416b5dbcd09aba9f17f7e3 | |
parent | 3b358f31e21e97978db552a2535c056d866b51cf (diff) |
fixes #3470 (Не блокировать кнопку включения/выключения фильтра)
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 10 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 9 | ||||
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 10 |
3 files changed, 14 insertions, 15 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index a3b069b3c4..a440cb82a5 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -627,13 +627,13 @@ void CMsgDialog::MessageDialogResize(int w, int h) m_nickList.Hide();
if (m_si->iType == GCW_SERVER) {
- m_btnNickList.Enable(false);
- m_btnFilter.Enable(false);
- m_btnChannelMgr.Enable(false);
+ m_btnNickList.Disable();
+ m_btnFilter.Disable();
+ m_btnChannelMgr.Disable();
}
else {
- m_btnNickList.Enable(true);
- m_btnFilter.Enable(true);
+ m_btnNickList.Enable();
+ m_btnFilter.Enable();
if (m_si->iType == GCW_CHATROOM)
m_btnChannelMgr.Enable(m_si->pMI->bChanMgr);
}
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 4d3ba096da..32bf54c22d 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -1130,8 +1130,7 @@ int CMsgDialog::Resizer(UTILRESIZECONTROL *urc) m_nickList.Show(m_bNicklistEnabled);
Utils::showDlgControl(m_hwnd, IDC_SPLITTERX, m_bNicklistEnabled ? SW_SHOW : SW_HIDE);
- m_btnNickList.Enable(true);
- m_btnFilter.Enable(m_iLogFilterFlags != 0);
+ m_btnNickList.Enable();
if (m_si->iType == GCW_CHATROOM)
m_btnChannelMgr.Enable(m_si->pMI->bChanMgr);
}
@@ -1139,9 +1138,9 @@ int CMsgDialog::Resizer(UTILRESIZECONTROL *urc) m_nickList.Hide();
Utils::showDlgControl(m_hwnd, IDC_SPLITTERX, SW_HIDE);
- m_btnNickList.Enable(false);
- m_btnFilter.Enable(false);
- m_btnChannelMgr.Enable(false);
+ m_btnNickList.Disable();
+ m_btnFilter.Disable();
+ m_btnChannelMgr.Disable();
}
bNick = m_si->iType != GCW_SERVER && m_bNicklistEnabled;
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index c4496270ae..14e25a9ef1 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -561,13 +561,13 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) m_nickList.Hide();
if (m_si->iType == GCW_SERVER) {
- m_btnNickList.Enable(false);
- m_btnFilter.Enable(false);
- m_btnChannelMgr.Enable(false);
+ m_btnNickList.Disable();
+ m_btnFilter.Disable();
+ m_btnChannelMgr.Disable();
}
else {
- m_btnNickList.Enable(true);
- m_btnFilter.Enable(true);
+ m_btnNickList.Enable();
+ m_btnFilter.Enable();
if (m_si->iType == GCW_CHATROOM)
m_btnChannelMgr.Enable(m_si->pMI->bChanMgr);
}
|