author | alwin <alwin> | 2005-03-12 18:25:40 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-12 18:25:40 (UTC) |
commit | 9dddeb81d7db5da718f3f467bb1511b7e72b9caa (patch) (unidiff) | |
tree | 4ebb3ca0a3c13d5c6229429a530480e0737a1713 | |
parent | f195cfb8a11a0b5ef6fd397cc835af59b4266c8c (diff) | |
download | opie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.zip opie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.tar.gz opie-9dddeb81d7db5da718f3f467bb1511b7e72b9caa.tar.bz2 |
check range for aplett timeout
-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 | |||
@@ -35,13 +35,15 @@ void SettingsDialog::writeConfig() { | |||
35 | cfg.setGroup( "Settings" ); | 35 | cfg.setGroup( "Settings" ); |
36 | cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); | 36 | cfg.writeEntry( "showHtml", showHtmlButton->isChecked() ); |
37 | cfg.setGroup( "Compose" ); | 37 | cfg.setGroup( "Compose" ); |
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 | } |
45 | 47 | ||
46 | void SettingsDialog::accept() { | 48 | void SettingsDialog::accept() { |
47 | writeConfig(); | 49 | writeConfig(); |
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 | |||
@@ -8,13 +8,13 @@ | |||
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
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> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Settings Dialog</string> | 20 | <string>Settings Dialog</string> |
@@ -205,12 +205,16 @@ | |||
205 | </property> | 205 | </property> |
206 | <property stdset="1"> | 206 | <property stdset="1"> |
207 | <name>suffix</name> | 207 | <name>suffix</name> |
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> |
214 | </widget> | 218 | </widget> |
215 | <widget> | 219 | <widget> |
216 | <class>QLabel</class> | 220 | <class>QLabel</class> |