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
This commit is contained in:
Marco Martin 2009-07-31 18:58:16 +00:00
parent f37ed173ad
commit 02e6870f4e

View File

@ -786,6 +786,8 @@ void Theme::releaseRectsCache(const QString &image)
{
QHash<QString, QSet<QString> >::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);
}
}