author | ulf69 <ulf69> | 2004-08-10 19:40:27 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-10 19:40:27 (UTC) |
commit | 20a2709f00d4e99eace87338fefc54701fcc47c0 (patch) (unidiff) | |
tree | d0914ea349b33322e837e3e67aacd0bfdc024a81 | |
parent | 2666ac52add8d79e34a04a64e4d5f092dd3d3d7e (diff) | |
download | kdepimpi-20a2709f00d4e99eace87338fefc54701fcc47c0.zip kdepimpi-20a2709f00d4e99eace87338fefc54701fcc47c0.tar.gz kdepimpi-20a2709f00d4e99eace87338fefc54701fcc47c0.tar.bz2 |
release cache of externalapphandler after changes have been applied
-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp index 9964eeb..c8b94db 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp | |||
@@ -269,32 +269,33 @@ void KDEPIMConfigWidget::saveEditFieldSettings() | |||
269 | mSMSOtherMessage = mMessage->text(); | 269 | mSMSOtherMessage = mMessage->text(); |
270 | mSMSOtherMessageParameters = mParameters->text(); | 270 | mSMSOtherMessageParameters = mParameters->text(); |
271 | } | 271 | } |
272 | else if ((mCurrentApp == ExternalAppHandler::FAX) && (mCurrentClient == KPimGlobalPrefs::OTHER_FAC)) | 272 | else if ((mCurrentApp == ExternalAppHandler::FAX) && (mCurrentClient == KPimGlobalPrefs::OTHER_FAC)) |
273 | { | 273 | { |
274 | mFaxOtherChannel = mChannel->text(); | 274 | mFaxOtherChannel = mChannel->text(); |
275 | mFaxOtherMessage = mMessage->text(); | 275 | mFaxOtherMessage = mMessage->text(); |
276 | mFaxOtherMessageParameters = mParameters->text(); | 276 | mFaxOtherMessageParameters = mParameters->text(); |
277 | } | 277 | } |
278 | else if ((mCurrentApp == ExternalAppHandler::PAGER) && (mCurrentClient == KPimGlobalPrefs::OTHER_PAC)) | 278 | else if ((mCurrentApp == ExternalAppHandler::PAGER) && (mCurrentClient == KPimGlobalPrefs::OTHER_PAC)) |
279 | { | 279 | { |
280 | mPagerOtherChannel = mChannel->text(); | 280 | mPagerOtherChannel = mChannel->text(); |
281 | mPagerOtherMessage = mMessage->text(); | 281 | mPagerOtherMessage = mMessage->text(); |
282 | mPagerOtherMessageParameters = mParameters->text(); | 282 | mPagerOtherMessageParameters = mParameters->text(); |
283 | } | 283 | } |
284 | 284 | ||
285 | |||
285 | } | 286 | } |
286 | 287 | ||
287 | void KDEPIMConfigWidget::updateClientWidgets() | 288 | void KDEPIMConfigWidget::updateClientWidgets() |
288 | { | 289 | { |
289 | bool blocked = signalsBlocked(); | 290 | bool blocked = signalsBlocked(); |
290 | blockSignals( true ); | 291 | blockSignals( true ); |
291 | 292 | ||
292 | // at this point we assume, that mCurrentApp and mCurrentClient are set to the values that we want to display | 293 | // at this point we assume, that mCurrentApp and mCurrentClient are set to the values that we want to display |
293 | QMap<ExternalAppHandler::Types, QString>::Iterator it = mExternalAppsMap.find ( mCurrentApp ); | 294 | QMap<ExternalAppHandler::Types, QString>::Iterator it = mExternalAppsMap.find ( mCurrentApp ); |
294 | if (it == mExternalAppsMap.end()) | 295 | if (it == mExternalAppsMap.end()) |
295 | return; | 296 | return; |
296 | 297 | ||
297 | // update group box | 298 | // update group box |
298 | mExternalAppGroupBox->setTitle(i18n( "Used %1 Client" ).arg(it.data())); | 299 | mExternalAppGroupBox->setTitle(i18n( "Used %1 Client" ).arg(it.data())); |
299 | 300 | ||
300 | //update the entries in the client combobox | 301 | //update the entries in the client combobox |
@@ -485,32 +486,35 @@ void KDEPIMConfigWidget::saveSettings(KPimGlobalPrefs* prefs) | |||
485 | prefs->mFaxOtherChannel = mFaxOtherChannel; | 486 | prefs->mFaxOtherChannel = mFaxOtherChannel; |
486 | prefs->mFaxOtherMessage = mFaxOtherMessage; | 487 | prefs->mFaxOtherMessage = mFaxOtherMessage; |
487 | prefs->mFaxOtherMessageParameters = mFaxOtherMessageParameters; | 488 | prefs->mFaxOtherMessageParameters = mFaxOtherMessageParameters; |
488 | 489 | ||
489 | prefs->mSMSClient = mSMSClient; | 490 | prefs->mSMSClient = mSMSClient; |
490 | prefs->mSMSOtherChannel = mSMSOtherChannel; | 491 | prefs->mSMSOtherChannel = mSMSOtherChannel; |
491 | prefs->mSMSOtherMessage = mSMSOtherMessage; | 492 | prefs->mSMSOtherMessage = mSMSOtherMessage; |
492 | prefs->mSMSOtherMessageParameters = mSMSOtherMessageParameters; | 493 | prefs->mSMSOtherMessageParameters = mSMSOtherMessageParameters; |
493 | 494 | ||
494 | prefs->mPagerClient = mPagerClient; | 495 | prefs->mPagerClient = mPagerClient; |
495 | prefs->mPagerOtherChannel = mPagerOtherChannel; | 496 | prefs->mPagerOtherChannel = mPagerOtherChannel; |
496 | prefs->mPagerOtherMessage = mPagerOtherMessage; | 497 | prefs->mPagerOtherMessage = mPagerOtherMessage; |
497 | prefs->mPagerOtherMessageParameters = mPagerOtherMessageParameters; | 498 | prefs->mPagerOtherMessageParameters = mPagerOtherMessageParameters; |
498 | 499 | ||
499 | prefs->writeConfig(); | 500 | prefs->writeConfig(); |
500 | 501 | ||
502 | //release the cache that other views can access the changed values instantanious | ||
503 | ExternalAppHandler::instance()->loadConfig(); | ||
504 | |||
501 | emit changed( false ); | 505 | emit changed( false ); |
502 | } | 506 | } |
503 | 507 | ||
504 | void KDEPIMConfigWidget::defaults(KPimGlobalPrefs* prefs) | 508 | void KDEPIMConfigWidget::defaults(KPimGlobalPrefs* prefs) |
505 | { | 509 | { |
506 | 510 | ||
507 | DefaultAppItem* dai = ExternalAppHandler::instance()->getDefaultItem(ExternalAppHandler::EMAIL, KPimGlobalPrefs::NONE_EMC); | 511 | DefaultAppItem* dai = ExternalAppHandler::instance()->getDefaultItem(ExternalAppHandler::EMAIL, KPimGlobalPrefs::NONE_EMC); |
508 | 512 | ||
509 | mEmailClient = dai->_id; | 513 | mEmailClient = dai->_id; |
510 | mEmailOtherChannel = dai->_channel; | 514 | mEmailOtherChannel = dai->_channel; |
511 | mEmailOtherMessage = dai->_message; | 515 | mEmailOtherMessage = dai->_message; |
512 | mEmailOtherMessageParameters = dai->_parameters; | 516 | mEmailOtherMessageParameters = dai->_parameters; |
513 | mEmailOtherMessage2 = dai->_message2; | 517 | mEmailOtherMessage2 = dai->_message2; |
514 | mEmailOtherMessageParameters2 = dai->_parameters2; | 518 | mEmailOtherMessageParameters2 = dai->_parameters2; |
515 | 519 | ||
516 | 520 | ||