summaryrefslogtreecommitdiff
authoralwin <alwin>2005-03-12 18:25:40 (UTC)
committer alwin <alwin>2005-03-12 18:25:40 (UTC)
commit9dddeb81d7db5da718f3f467bb1511b7e72b9caa (patch) (unidiff)
tree4ebb3ca0a3c13d5c6229429a530480e0737a1713
parentf195cfb8a11a0b5ef6fd397cc835af59b4266c8c (diff)
downloadopie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.zip
opie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.tar.gz
opie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.tar.bz2
check range for aplett timeout
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/settingsdialog.cpp4
-rw-r--r--noncore/net/mail/settingsdialogui.ui6
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
@@ -38,7 +38,9 @@ void SettingsDialog::writeConfig() {
38 cfg.writeEntry( "sendLater", checkBoxLater->isChecked() ); 38 cfg.writeEntry( "sendLater", checkBoxLater->isChecked() );
39 cfg.setGroup( "Applet" ); 39 cfg.setGroup( "Applet" );
40 cfg.writeEntry( "Disabled", cbEnableTaskbarApplet->isChecked() ); 40 cfg.writeEntry( "Disabled", cbEnableTaskbarApplet->isChecked() );
41 cfg.writeEntry( "CheckEvery", spCheckOften->value() ); 41 int check = spCheckOften->value();
42 if (check<1)check=1;if (check>99)check=99;
43 cfg.writeEntry( "CheckEvery", check);
42 cfg.writeEntry( "BlinkLed", cbBlinkLed->isChecked() ); 44 cfg.writeEntry( "BlinkLed", cbBlinkLed->isChecked() );
43 cfg.writeEntry( "PlaySound", cbPlaySound->isChecked() ); 45 cfg.writeEntry( "PlaySound", cbPlaySound->isChecked() );
44} 46}
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 @@
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>316</width> 14 <width>312</width>
15 <height>379</height> 15 <height>379</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
@@ -208,6 +208,10 @@
208 <string> min</string> 208 <string> min</string>
209 </property> 209 </property>
210 <property stdset="1"> 210 <property stdset="1">
211 <name>minValue</name>
212 <number>1</number>
213 </property>
214 <property stdset="1">
211 <name>value</name> 215 <name>value</name>
212 <number>5</number> 216 <number>5</number>
213 </property> 217 </property>