Skip to content

Commit

Permalink
fix: when iconName is absolute path
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
Decodetalkers authored and kegechen committed Sep 25, 2023
1 parent 4f8d373 commit 6bee9a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/dicontheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ QIconEngine *DIconTheme::createIconEngine(const QString &iconName, Options optio

QIcon DIconTheme::findQIcon(const QString &iconName, Options options)
{
if (QDir::isAbsolutePath(iconName)) {
return QIcon(iconName);
}
auto engine = createIconEngine(iconName, options);
// fallback to QIcon::fromTheme
if (!options.testFlag(DontFallbackToQIconFromTheme) && !engine)
Expand Down

0 comments on commit 6bee9a6

Please sign in to comment.