backport findInCache fix

svn path=/branches/KDE/4.3/kdelibs/; revision=1004777
This commit is contained in:
Marco Martin 2009-07-30 20:41:16 +00:00
parent 597682cbdb
commit 48484719d3

View File

@ -664,10 +664,6 @@ bool Theme::useNativeWidgetStyle() const
bool Theme::findInCache(const QString &key, QPixmap &pix)
{
if (d->useCache()) {
if (!d->keysToCache.contains(key)) {
return false;
}
const QString id = d->keysToCache[key];
if (d->pixmapsToCache.contains(id)) {
pix = d->pixmapsToCache.value(id);