This repository has been archived by the owner on Feb 12, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Widget::updateIcons): workaround QIcon fallback bug
Some builds of Qt appear to have a bug in icon loading: QIcon::hasThemeIcon is sometimes unaware that the icon returned from QIcon::fromTheme was a fallback icon, causing hasThemeIcon to incorrectly return true. In qTox this leads to the tray and window icons using the static qTox logo icon instead of an icon based on the current presence status. This workaround checks for an icon that definitely does not exist to determine if hasThemeIcon can be trusted. On systems with the Qt bug, this workaround will always use our included icons but user themes will be unable to override them.
- Loading branch information