diff --git a/theme.cpp b/theme.cpp index f8cb01597..aa24e72d0 100644 --- a/theme.cpp +++ b/theme.cpp @@ -288,8 +288,6 @@ void ThemePrivate::compositingChanged() void ThemePrivate::discardCache(CacheTypes caches) { - discoveries.clear(); - if (caches & PixmapCache) { pixmapsToCache.clear(); saveTimer->stop(); @@ -305,6 +303,7 @@ void ThemePrivate::discardCache(CacheTypes caches) cachedStyleSheets.clear(); if (caches & SvgElementsCache) { + discoveries.clear(); invalidElements.clear(); if (svgElementsCache) {