clear local memory caches and stop cache timers when theme changes

svn path=/trunk/KDE/kdelibs/; revision=895370
This commit is contained in:
Marco Martin 2008-12-10 14:35:44 +00:00
parent 6d0e474ba9
commit 232986330b
2 changed files with 4 additions and 1 deletions

View File

@ -349,6 +349,10 @@ class SvgPrivate
q, SLOT(colorsChanged()));
}
localRectCache.clear();
itemsToSave.clear();
saveTimer->stop();
//kDebug() << themePath << ">>>>>>>>>>>>>>>>>> theme changed";
emit q->repaintNeeded();
}

View File

@ -186,7 +186,6 @@ void ThemePrivate::discardCache()
KPixmapCache::deleteCache("plasma_theme_" + themeName);
delete svgElementsCache;
svgElementsCache = 0;
QString svgElementsFile = KStandardDirs::locateLocal("cache", "plasma-svgelements-" + themeName);