use value instead of [] to avoid empty or uninteresting elements in the collection

svn path=/branches/KDE/4.3/kdelibs/; revision=1006950
This commit is contained in:
Aaron J. Seigo 2009-08-04 19:14:59 +00:00
parent 9a7c26958f
commit 90b120b01c

View File

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