Slightly faster lookup of cached theme elements

This commit is contained in:
Sebastian Kügler 2014-02-21 01:19:58 +01:00
parent 68496ed363
commit d8ea983d45

View File

@ -240,7 +240,7 @@ void ThemePrivate::onAppExitCleanup()
QString ThemePrivate::findInTheme(const QString &image, const QString &theme, bool cache)
{
if (cache && discoveries.contains(image)) {
return discoveries[image];
return discoveries.value(image);
}
QString search;