summaryrefslogtreecommitdiff
path: root/plugins/BossKeyPlus
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 /plugins/BossKeyPlus
parent73c62ca9fc13c48a7768136279f0d70ac478c04b (diff)
fixes #1825 (spin control initialization should be done in the constructor, not inside OnInitDialog)
Diffstat (limited to 'plugins/BossKeyPlus')
-rw-r--r--plugins/BossKeyPlus/src/Options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/BossKeyPlus/src/Options.cpp b/plugins/BossKeyPlus/src/Options.cpp
index 1d9b42bc03..ccd861cdc0 100644
--- a/plugins/BossKeyPlus/src/Options.cpp
+++ b/plugins/BossKeyPlus/src/Options.cpp
@@ -220,7 +220,7 @@ public:
m_chkHideIfWinIdle(this, IDC_MAINOPT_HIDEIFWINIDLE),
m_chkHideIfMirIdle(this, IDC_MAINOPT_HIDEIFMIRIDLE),
m_edtTime(this, IDC_MAINOPT_TIME),
- m_spnTime(this, IDC_MAINOPT_SPIN_TIME),
+ m_spnTime(this, IDC_MAINOPT_SPIN_TIME, 99, 1),
m_chkHideOnStart(this, IDC_MAINOPT_HIDEONSTART),
m_chkMenuItem(this, IDC_MAINOPT_MENUITEM),
m_chkRestore(this, IDC_MAINOPT_RESTORE)
@@ -237,7 +237,6 @@ public:
wchar_t szMinutes[4] = { 0 };
_itow(minutes, szMinutes, 10);
m_edtTime.SendMsg(EM_LIMITTEXT, 2, 0);
- m_spnTime.SetRange(1, 99);
m_edtTime.SetText(szMinutes);
m_chkHideIfLock.SetState(g_wMaskAdv & OPT_HIDEIFLOCK);
m_chkMenuItem.SetState(g_wMaskAdv & OPT_MENUITEM);