summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IRCG/src/windows.cpp')
-rw-r--r--protocols/IRCG/src/windows.cpp12
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*)