From 2c8ad98fdb312fc1730178d72a94b48ea9cf67a0 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 4 Aug 2009 19:13:58 +0000 Subject: [PATCH] use value instead of [] to avoid empty or uninteresting elements in the collection svn path=/trunk/KDE/kdelibs/; revision=1006949 --- theme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.cpp b/theme.cpp index 60e626929..e9d949f47 100644 --- a/theme.cpp +++ b/theme.cpp @@ -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;