From 91cea8d160d44ac4574c981dfe0fc9cf195d7c6a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Mar 2024 12:34:22 +0300 Subject: =?UTF-8?q?fixes=20#4259=20(IRC:=20=D0=BF=D1=80=D0=B8=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B8=20=D0=BE=D0=BA=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BA=20?= =?UTF-8?q?=D0=BA=D0=B0=D0=BD=D0=B0=D0=BB=D0=B0=20=D0=B7=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D1=91=D1=82=D1=81=D1=8F=20=D0=B2=D0=BE=D0=BF=D1=80=D0=BE=D1=81?= =?UTF-8?q?=20=D0=BE=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BA?= =?UTF-8?q?,=20=D0=B4=D0=B0=D0=B6=D0=B5=20=D0=B5=D1=81=D0=BB=D0=B8=20?= =?UTF-8?q?=D0=BE=D0=BD=D0=B8=20=D0=BD=D0=B5=20=D0=BC=D0=B5=D0=BD=D1=8F?= =?UTF-8?q?=D0=BB=D0=B8=D1=81=D1=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/IRCG/src/windows.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'protocols/IRCG/src') 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*) -- cgit v1.2.3