From 90b120b01c21275f713d385bc263693f2a0a1acf Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 4 Aug 2009 19:14:59 +0000 Subject: [PATCH] use value instead of [] to avoid empty or uninteresting elements in the collection svn path=/branches/KDE/4.3/kdelibs/; revision=1006950 --- theme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.cpp b/theme.cpp index 97275535b..22f03aeb8 100644 --- a/theme.cpp +++ b/theme.cpp @@ -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;