summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorulf69 <ulf69>2004-08-10 19:40:27 (UTC)
committer ulf69 <ulf69>2004-08-10 19:40:27 (UTC)
commit20a2709f00d4e99eace87338fefc54701fcc47c0 (patch) (side-by-side diff)
treed0914ea349b33322e837e3e67aacd0bfdc024a81 /libkdepim
parent2666ac52add8d79e34a04a64e4d5f092dd3d3d7e (diff)
downloadkdepimpi-20a2709f00d4e99eace87338fefc54701fcc47c0.zip
kdepimpi-20a2709f00d4e99eace87338fefc54701fcc47c0.tar.gz
kdepimpi-20a2709f00d4e99eace87338fefc54701fcc47c0.tar.bz2
release cache of externalapphandler after changes have been applied
Diffstat (limited to 'libkdepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kcmconfigs/kdepimconfigwidget.cpp4
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
@@ -273,24 +273,25 @@ void KDEPIMConfigWidget::saveEditFieldSettings()
{
mFaxOtherChannel = mChannel->text();
mFaxOtherMessage = mMessage->text();
mFaxOtherMessageParameters = mParameters->text();
}
else if ((mCurrentApp == ExternalAppHandler::PAGER) && (mCurrentClient == KPimGlobalPrefs::OTHER_PAC))
{
mPagerOtherChannel = mChannel->text();
mPagerOtherMessage = mMessage->text();
mPagerOtherMessageParameters = mParameters->text();
}
+
}
void KDEPIMConfigWidget::updateClientWidgets()
{
bool blocked = signalsBlocked();
blockSignals( true );
// at this point we assume, that mCurrentApp and mCurrentClient are set to the values that we want to display
QMap<ExternalAppHandler::Types, QString>::Iterator it = mExternalAppsMap.find ( mCurrentApp );
if (it == mExternalAppsMap.end())
return;
@@ -489,24 +490,27 @@ void KDEPIMConfigWidget::saveSettings(KPimGlobalPrefs* prefs)
prefs->mSMSClient = mSMSClient;
prefs->mSMSOtherChannel = mSMSOtherChannel;
prefs->mSMSOtherMessage = mSMSOtherMessage;
prefs->mSMSOtherMessageParameters = mSMSOtherMessageParameters;
prefs->mPagerClient = mPagerClient;
prefs->mPagerOtherChannel = mPagerOtherChannel;
prefs->mPagerOtherMessage = mPagerOtherMessage;
prefs->mPagerOtherMessageParameters = mPagerOtherMessageParameters;
prefs->writeConfig();
+ //release the cache that other views can access the changed values instantanious
+ ExternalAppHandler::instance()->loadConfig();
+
emit changed( false );
}
void KDEPIMConfigWidget::defaults(KPimGlobalPrefs* prefs)
{
DefaultAppItem* dai = ExternalAppHandler::instance()->getDefaultItem(ExternalAppHandler::EMAIL, KPimGlobalPrefs::NONE_EMC);
mEmailClient = dai->_id;
mEmailOtherChannel = dai->_channel;
mEmailOtherMessage = dai->_message;
mEmailOtherMessageParameters = dai->_parameters;