Skip to content

Commit

Permalink
Use QIcon::fromTheme in PixmapProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Aug 17, 2024
1 parent 59f2808 commit f012a0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/iconprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ QPixmap albert::pixmapFromUrl(const QString &url, const QSize &requestedSize)

else if (url.startsWith(xdg_icon_lookup_scheme))
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
return pixmapFromFilePath(xdgIconLookup(url.mid(xdg_icon_lookup_scheme.size())), requestedSize);
// return pixmapFromFilePath(xdgIconLookup(url.mid(xdg_icon_lookup_scheme.size())), requestedSize);
return QIcon::fromTheme(url.mid(xdg_icon_lookup_scheme.size())).pixmap(requestedSize);
#else
return {};
#endif
Expand Down

0 comments on commit f012a0e

Please sign in to comment.