clear local memory caches and stop cache timers when theme changes
svn path=/trunk/KDE/kdelibs/; revision=895370
This commit is contained in:
parent
6d0e474ba9
commit
232986330b
4
svg.cpp
4
svg.cpp
@ -349,6 +349,10 @@ class SvgPrivate
|
|||||||
q, SLOT(colorsChanged()));
|
q, SLOT(colorsChanged()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
localRectCache.clear();
|
||||||
|
itemsToSave.clear();
|
||||||
|
saveTimer->stop();
|
||||||
|
|
||||||
//kDebug() << themePath << ">>>>>>>>>>>>>>>>>> theme changed";
|
//kDebug() << themePath << ">>>>>>>>>>>>>>>>>> theme changed";
|
||||||
emit q->repaintNeeded();
|
emit q->repaintNeeded();
|
||||||
}
|
}
|
||||||
|
@ -186,7 +186,6 @@ void ThemePrivate::discardCache()
|
|||||||
KPixmapCache::deleteCache("plasma_theme_" + themeName);
|
KPixmapCache::deleteCache("plasma_theme_" + themeName);
|
||||||
|
|
||||||
|
|
||||||
delete svgElementsCache;
|
|
||||||
svgElementsCache = 0;
|
svgElementsCache = 0;
|
||||||
|
|
||||||
QString svgElementsFile = KStandardDirs::locateLocal("cache", "plasma-svgelements-" + themeName);
|
QString svgElementsFile = KStandardDirs::locateLocal("cache", "plasma-svgelements-" + themeName);
|
||||||
|
Loading…
Reference in New Issue
Block a user