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:
parent
fd28c2f7db
commit
2c8ad98fdb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user