mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
[OxygenFallback] Correctly initialize fallback icon theme
For some reason, QIcon::hasThemeIcon does not work correctly.
This commit is contained in:
parent
4305b59028
commit
586a9d2242
@ -167,7 +167,7 @@ int main(int argc, char* argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set fallback icon theme (eg. on Windows/Mac)
|
// Set fallback icon theme (eg. on Windows/Mac)
|
||||||
if (!QIcon::hasThemeIcon(QSL("document-open"))) {
|
if (QIcon::fromTheme(QSL("document-open")).isNull()) {
|
||||||
QIcon::setThemeSearchPaths(QStringList() << QL1S(":/oxygen-fallback"));
|
QIcon::setThemeSearchPaths(QStringList() << QL1S(":/oxygen-fallback"));
|
||||||
QIcon::setThemeName(QSL("oxygen-fallback"));
|
QIcon::setThemeName(QSL("oxygen-fallback"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user