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) --- src/core/stdautoaway/src/options.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/stdautoaway') diff --git a/src/core/stdautoaway/src/options.cpp b/src/core/stdautoaway/src/options.cpp index 33c9a25713..ad04fdb3a3 100644 --- a/src/core/stdautoaway/src/options.cpp +++ b/src/core/stdautoaway/src/options.cpp @@ -59,7 +59,7 @@ public: COptionsDlg() : CDlgBase(g_plugin, IDD_OPT_IDLE), edt1sttime(this, IDC_IDLE1STTIME), - spinIdle(this, IDC_IDLESPIN), + spinIdle(this, IDC_IDLESPIN, 60, 1), cmbAAStatus(this, IDC_AASTATUS), chkShort(this, IDC_IDLESHORT), chkLocked(this, IDC_LOCKED), @@ -91,7 +91,6 @@ public: { chkOnWindows.SetState(!g_plugin.bIdleMethod); - spinIdle.SetRange(60, 1); spinIdle.SetPosition(g_plugin.iIdleTime1st); for (auto &it : aa_Status) -- cgit v1.2.3