https://bugs.kde.org/show_bug.cgi?id=479313

David Redondo <k...@david-redondo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
          Component|general                     |general
                 CC|                            |k...@david-redondo.de,
                   |                            |kdelibs-b...@kde.org
           Assignee|plasma-b...@kde.org         |cf...@kde.org
            Product|plasma-integration          |frameworks-kiconthemes
     Ever confirmed|0                           |1

--- Comment #1 from David Redondo <k...@david-redondo.de> ---
Confirmed the cause is that we loop over all extensions and look into all
directories


QString KIconTheme::iconPathByName(const QString &iconName, int size,
KIconLoader::MatchType match, qreal scale) const
{
    for (const QString &current : std::as_const(d->mExtensions)) {
        const QString path = iconPath(iconName + current, size, match, scale);
        if (!path.isEmpty()) {
            return path;
        }
    }
    return QString();
}

At that point there is no info anymore about how good that match is.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to