summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-05 13:39:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-05 13:39:25 +0300
commit563aac340768af4f96fd74a3246098cc3bdf47e0 (patch)
tree1b5493871936484788b3767d6a3c32066e47b4d5 /protocols/IRCG/src/options.cpp
parent73c62ca9fc13c48a7768136279f0d70ac478c04b (diff)
fixes #1825 (spin control initialization should be done in the constructor, not inside OnInitDialog)
Diffstat (limited to 'protocols/IRCG/src/options.cpp')
-rw-r--r--protocols/IRCG/src/options.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp
index 14b3c4ae8c..accfb1ac39 100644
--- a/protocols/IRCG/src/options.cpp
+++ b/protocols/IRCG/src/options.cpp
@@ -471,8 +471,8 @@ CConnectPrefsDlg::CConnectPrefsDlg(CIrcProto* _pro)
m_enableServer(this, IDC_STARTUP),
m_onlineTimer(this, IDC_ONLINETIMER),
m_limit(this, IDC_LIMIT),
- m_spin1(this, IDC_SPIN1),
- m_spin2(this, IDC_SPIN2),
+ m_spin1(this, IDC_SPIN1, 999, 20),
+ m_spin2(this, IDC_SPIN2, 200),
m_ssl(this, IDC_SSL),
m_serverlistModified(false)
{
@@ -516,10 +516,7 @@ bool CConnectPrefsDlg::OnInitDialog()
}
}
- m_spin1.SetRange(999, 20);
m_spin1.SetPosition(m_proto->m_onlineNotificationTime);
-
- m_spin2.SetRange(200);
m_spin2.SetPosition(m_proto->m_onlineNotificationLimit);
m_nick.SetText(m_proto->m_nick);