From 02e6870f4eeac489c215b7c0d38ef391fead2409 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 31 Jul 2009 18:58:16 +0000 Subject: [PATCH] when releasing an element from the rect cache, remove it from memory, but write it to disk anyways svn path=/trunk/KDE/kdelibs/; revision=1005300 --- theme.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/theme.cpp b/theme.cpp index 26e446c26..60e626929 100644 --- a/theme.cpp +++ b/theme.cpp @@ -786,6 +786,8 @@ void Theme::releaseRectsCache(const QString &image) { QHash >::iterator it = d->invalidElements.find(image); if (it != d->invalidElements.end()) { + KConfigGroup imageGroup(d->svgElementsCache, it.key()); + imageGroup.writeEntry("invalidElements", it.value().toList()); d->invalidElements.erase(it); } }