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:
parent
2c8ad98fdb
commit
3d96f8eb2c
@ -690,7 +690,7 @@ bool Theme::findInCache(const QString &key, QPixmap &pix)
|
|||||||
bool Theme::findInCache(const QString &key, QPixmap &pix, unsigned int lastModified)
|
bool Theme::findInCache(const QString &key, QPixmap &pix, unsigned int lastModified)
|
||||||
{
|
{
|
||||||
if (d->useCache() && lastModified > d->pixmapCache->timestamp()) {
|
if (d->useCache() && lastModified > d->pixmapCache->timestamp()) {
|
||||||
d->discardCache(true);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return findInCache(key, pix);
|
return findInCache(key, pix);
|
||||||
|
Loading…
Reference in New Issue
Block a user