summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-05-23 14:56:51 +0200
committerMontel Laurent <[email protected]>2015-05-23 14:56:51 +0200
commit71ef2abaee22ac1ed97e37e2b021f0f4e76b4632 (patch)
treec680b33301e2fe201f390f50e2347ef278b9a2ed
parentf73dc8b9d3bd2db2064050c32d974dee4b39705a (diff)
Clear cache when we disable gravatar support
-rw-r--r--messageviewer/widgets/gravatarconfigwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/messageviewer/widgets/gravatarconfigwidget.cpp b/messageviewer/widgets/gravatarconfigwidget.cpp
index 2221307..0b5cf51 100644
--- a/messageviewer/widgets/gravatarconfigwidget.cpp
+++ b/messageviewer/widgets/gravatarconfigwidget.cpp
@@ -101,6 +101,9 @@ void GravatarConfigWidget::save()
saveCheckBox(mEnableGravatarSupport, MessageViewer::GlobalSettings::self()->gravatarSupportEnabledItem());
saveCheckBox(mUseDefaultPixmap, MessageViewer::GlobalSettings::self()->gravatarUseDefaultImageItem());
saveSpinBox(mGravatarCacheSize, MessageViewer::GlobalSettings::self()->gravatarCacheSizeItem());
+ if (!mEnableGravatarSupport->isChecked()) {
+ PimCommon::GravatarCache::self()->clearAllCache();
+ }
}
void GravatarConfigWidget::doLoadFromGlobalSettings()