From 563aac340768af4f96fd74a3246098cc3bdf47e0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Feb 2019 13:39:25 +0300 Subject: fixes #1825 (spin control initialization should be done in the constructor, not inside OnInitDialog) --- protocols/ICQ-WIM/src/options.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'protocols/ICQ-WIM') diff --git a/protocols/ICQ-WIM/src/options.cpp b/protocols/ICQ-WIM/src/options.cpp index 36d74c8903..b4706423d6 100644 --- a/protocols/ICQ-WIM/src/options.cpp +++ b/protocols/ICQ-WIM/src/options.cpp @@ -164,8 +164,8 @@ class CIcqOptionsDlg : public CProtoDlgBase public: CIcqOptionsDlg(CIcqProto *ppro, int iDlgID, bool bFullDlg) : CProtoDlgBase(ppro, iDlgID), - spin1(this, IDC_SPIN1), - spin2(this, IDC_SPIN2), + spin1(this, IDC_SPIN1, 3600), + spin2(this, IDC_SPIN2, 3600), edtUin(this, IDC_UIN), edtEmail(this, IDC_EMAIL), edtDiff1(this, IDC_DIFF1), @@ -206,9 +206,6 @@ public: cmbStatus2.SetItemData(idx, iStatus); if (iStatus == m_proto->m_iStatus2) cmbStatus2.SetCurSel(idx); - - spin1.SetRange(3600); - spin2.SetRange(3600); } onChange_Timeout1(0); -- cgit v1.2.3