backport the proper behaviour for this function

svn path=/branches/KDE/4.3/kdelibs/; revision=1006976
This commit is contained in:
Marco Martin 2009-08-04 20:01:28 +00:00
parent 90b120b01c
commit 4a5315e3d3

View File

@ -680,7 +680,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);