summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-13 17:46:06 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-13 17:46:06 +0300
commit803b5a53f145e08a1c2a5a730b2f0a796a83a7a2 (patch)
tree879d4429598572e75fbd101b97fd66403784700a /plugins/Db_autobackups
parent864dafee5d76c474b11ff034a108189af65043b9 (diff)
by default the upper limit is 100, so if we work with higher values, we need to set a value manually
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r--plugins/Db_autobackups/src/options.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp
index 837487560c..cb9c641ded 100644
--- a/plugins/Db_autobackups/src/options.cpp
+++ b/plugins/Db_autobackups/src/options.cpp
@@ -53,7 +53,9 @@ void COptionsDlg::OnInitDialog()
m_backupPeriodic.SetState(options.backup_types & BT_PERIODIC ? TRUE : FALSE);
m_period.SetRange(60, 1);
+
m_numBackups.SetRange(9999, 1);
+ m_numBackups.SetPosition(options.num_backups);
m_periodType.AddString(TranslateT("days"));
m_periodType.AddString(TranslateT("hours"));