backport disk cache sync in releaseRectsCache

svn path=/branches/KDE/4.3/kdelibs/; revision=1005305
This commit is contained in:
Marco Martin 2009-07-31 18:59:45 +00:00
parent 259db9bbd2
commit 9e6bdba592

View File

@ -776,6 +776,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);
}
}