summaryrefslogtreecommitdiff
path: root/noncore/net/mail/settingsdialog.cpp
Side-by-side diff
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() );
}