diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-02 12:34:22 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-02 12:34:22 +0300 |
commit | 91cea8d160d44ac4574c981dfe0fc9cf195d7c6a (patch) | |
tree | 4c9912d9959fddeb84ae9acac935567515bd0662 /protocols/IRCG/src | |
parent | 93d4fb72168a48d7c6120a2ae31c7964b8631afa (diff) |
fixes #4259 (IRC: при закрытии окна настроек канала задаётся вопрос о сохранении настроек, даже если они не менялись)
Diffstat (limited to 'protocols/IRCG/src')
-rw-r--r-- | protocols/IRCG/src/windows.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/protocols/IRCG/src/windows.cpp b/protocols/IRCG/src/windows.cpp index 18e8149a72..cc91f77a00 100644 --- a/protocols/IRCG/src/windows.cpp +++ b/protocols/IRCG/src/windows.cpp @@ -478,6 +478,9 @@ bool CManagerDlg::OnInitDialog() m_list.SendMsg(LB_SETHORIZONTALEXTENT, 750, NULL);
m_radio1.SetState(true);
+ m_applyModes.Disable();
+ m_applyTopic.Disable();
+
const char* modes = m_proto->sChannelModes;
if (!strchr(modes, 't')) m_check1.Disable();
if (!strchr(modes, 'n')) m_check2.Disable();
@@ -820,19 +823,22 @@ void CManagerDlg::OnApplyTopic(CCtrlButton*) void CManagerDlg::OnCheck(CCtrlData*)
{
- m_applyModes.Enable();
+ if (m_bInitialized)
+ m_applyModes.Enable();
}
void CManagerDlg::OnCheck5(CCtrlData*)
{
m_key.Enable(m_check5.GetState());
- m_applyModes.Enable();
+ if (m_bInitialized)
+ m_applyModes.Enable();
}
void CManagerDlg::OnCheck6(CCtrlData*)
{
m_limit.Enable(m_check6.GetState());
- m_applyModes.Enable();
+ if (m_bInitialized)
+ m_applyModes.Enable();
}
void CManagerDlg::OnRadio(CCtrlData*)
|