Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebook.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp index 8ae4f84..70dd7b5 100644 --- a/core/pim/datebook/datebook.cpp +++ b/core/pim/datebook/datebook.cpp | |||
@@ -250,32 +250,33 @@ void DateBook::slotSettings() | |||
250 | 250 | ||
251 | bool found=false; | 251 | bool found=false; |
252 | for (int i=0; i<(frmSettings.comboLocation->count()); i++) { | 252 | for (int i=0; i<(frmSettings.comboLocation->count()); i++) { |
253 | if ( frmSettings.comboLocation->text(i) == defaultLocation ) { | 253 | if ( frmSettings.comboLocation->text(i) == defaultLocation ) { |
254 | frmSettings.comboLocation->setCurrentItem(i); | 254 | frmSettings.comboLocation->setCurrentItem(i); |
255 | found=true; | 255 | found=true; |
256 | break; | 256 | break; |
257 | } | 257 | } |
258 | } | 258 | } |
259 | if(!found) { | 259 | if(!found) { |
260 | frmSettings.comboLocation->insertItem(defaultLocation); | 260 | frmSettings.comboLocation->insertItem(defaultLocation); |
261 | frmSettings.comboLocation->setCurrentItem(frmSettings.comboLocation->count()-1); | 261 | frmSettings.comboLocation->setCurrentItem(frmSettings.comboLocation->count()-1); |
262 | } | 262 | } |
263 | frmSettings.comboCategory->setCategories(defaultCategories,"Calendar", tr("Calendar")); | 263 | frmSettings.comboCategory->setCategories(defaultCategories,"Calendar", tr("Calendar")); |
264 | 264 | ||
265 | if ( QPEApplication::execDialog( &frmSettings ) ) { | 265 | if ( QPEApplication::execDialog( &frmSettings ) ) { |
266 | frmSettings.savePlugins(); | ||
266 | db_holiday->pluginManager()->save(); | 267 | db_holiday->pluginManager()->save(); |
267 | db_holiday->reloadPlugins(); | 268 | db_holiday->reloadPlugins(); |
268 | 269 | ||
269 | aPreset = frmSettings.alarmPreset(); | 270 | aPreset = frmSettings.alarmPreset(); |
270 | presetTime = frmSettings.presetTime(); | 271 | presetTime = frmSettings.presetTime(); |
271 | startTime = frmSettings.startTime(); | 272 | startTime = frmSettings.startTime(); |
272 | bJumpToCurTime = frmSettings.jumpToCurTime(); | 273 | bJumpToCurTime = frmSettings.jumpToCurTime(); |
273 | rowStyle = frmSettings.rowStyle(); | 274 | rowStyle = frmSettings.rowStyle(); |
274 | defaultView=frmSettings.comboDefaultView->currentItem()+1; | 275 | defaultView=frmSettings.comboDefaultView->currentItem()+1; |
275 | weeklistviewconfig=frmSettings.comboWeekListView->currentItem(); | 276 | weeklistviewconfig=frmSettings.comboWeekListView->currentItem(); |
276 | defaultLocation=frmSettings.comboLocation->currentText(); | 277 | defaultLocation=frmSettings.comboLocation->currentText(); |
277 | defaultCategories=frmSettings.comboCategory->currentCategories(); | 278 | defaultCategories=frmSettings.comboCategory->currentCategories(); |
278 | 279 | ||
279 | if ( dayView ) { | 280 | if ( dayView ) { |
280 | dayView->setStartViewTime( startTime ); | 281 | dayView->setStartViewTime( startTime ); |
281 | dayView->setJumpToCurTime( bJumpToCurTime ); | 282 | dayView->setJumpToCurTime( bJumpToCurTime ); |