just say you didn't found the item, don't nuke the whole cache

svn path=/trunk/KDE/kdelibs/; revision=1006969
This commit is contained in:
Marco Martin 2009-08-04 19:54:58 +00:00
parent 2c8ad98fdb
commit 3d96f8eb2c

View File

@ -690,7 +690,7 @@ bool Theme::findInCache(const QString &key, QPixmap &pix)
bool Theme::findInCache(const QString &key, QPixmap &pix, unsigned int lastModified)
{
if (d->useCache() && lastModified > d->pixmapCache->timestamp()) {
d->discardCache(true);
return false;
}
return findInCache(key, pix);