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

svn path=/trunk/KDE/kdelibs/; revision=1006949
This commit is contained in:
Aaron J. Seigo 2009-08-04 19:13:58 +00:00
parent fd28c2f7db
commit 2c8ad98fdb

View File

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