From 9dddeb81d7db5da718f3f467bb1511b7e72b9caa Mon Sep 17 00:00:00 2001 From: alwin Date: Sat, 12 Mar 2005 18:25:40 +0000 Subject: check range for aplett timeout --- (limited to 'noncore/net') diff --git a/noncore/net/mail/settingsdialog.cpp b/noncore/net/mail/settingsdialog.cpp index 061ea72..6441948 100644 --- a/noncore/net/mail/settingsdialog.cpp +++ b/noncore/net/mail/settingsdialog.cpp @@ -38,7 +38,9 @@ void SettingsDialog::writeConfig() { cfg.writeEntry( "sendLater", checkBoxLater->isChecked() ); cfg.setGroup( "Applet" ); cfg.writeEntry( "Disabled", cbEnableTaskbarApplet->isChecked() ); - cfg.writeEntry( "CheckEvery", spCheckOften->value() ); + int check = spCheckOften->value(); + if (check<1)check=1;if (check>99)check=99; + cfg.writeEntry( "CheckEvery", check); cfg.writeEntry( "BlinkLed", cbBlinkLed->isChecked() ); cfg.writeEntry( "PlaySound", cbPlaySound->isChecked() ); } diff --git a/noncore/net/mail/settingsdialogui.ui b/noncore/net/mail/settingsdialogui.ui index 13b8e05..4acd84a 100644 --- a/noncore/net/mail/settingsdialogui.ui +++ b/noncore/net/mail/settingsdialogui.ui @@ -11,7 +11,7 @@ 0 0 - 316 + 312 379 @@ -208,6 +208,10 @@ min + minValue + 1 + + value 5 -- cgit v0.9.0.2