-rw-r--r-- | noncore/net/mail/settingsdialog.cpp | 4 | ||||
-rw-r--r-- | noncore/net/mail/settingsdialogui.ui | 6 |
2 files changed, 8 insertions, 2 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 @@ -39,5 +39,7 @@ void SettingsDialog::writeConfig() { 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 @@ -12,5 +12,5 @@ <x>0</x> <y>0</y> - <width>316</width> + <width>312</width> <height>379</height> </rect> @@ -209,4 +209,8 @@ </property> <property stdset="1"> + <name>minValue</name> + <number>1</number> + </property> + <property stdset="1"> <name>value</name> <number>5</number> |