summaryrefslogtreecommitdiff
path: root/noncore/net/mail/settingsdialog.cpp
authoralwin <alwin>2005-03-12 18:25:40 (UTC)
committer alwin <alwin>2005-03-12 18:25:40 (UTC)
commit9dddeb81d7db5da718f3f467bb1511b7e72b9caa (patch) (side-by-side diff)
tree4ebb3ca0a3c13d5c6229429a530480e0737a1713 /noncore/net/mail/settingsdialog.cpp
parentf195cfb8a11a0b5ef6fd397cc835af59b4266c8c (diff)
downloadopie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.zip
opie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.tar.gz
opie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.tar.bz2
check range for aplett timeout
Diffstat (limited to 'noncore/net/mail/settingsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/settingsdialog.cpp4
1 files changed, 3 insertions, 1 deletions
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() );
}