Commit e587fa63 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 2f8ff889
......@@ -44,8 +44,9 @@ QString IconNameCache::iconPath(const QString &name, int size) const
entry.fileName = name;
entry.size = size;
if (mCachedEntries.contains(entry)) {
return mCachedEntries.value(entry);
const QString path = mCachedEntries.value(entry);
if (!path.isEmpty()) {
return path;
}
const QString fileName = KIconLoader::global()->iconPath(name, size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment