1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-21 03:06:34 +01:00

[OxygenFallback] Correctly initialize fallback icon theme

For some reason, QIcon::hasThemeIcon does not work correctly.
This commit is contained in:
nowrep 2014-03-26 10:05:27 +01:00
parent 4305b59028
commit 586a9d2242

View File

@ -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"));
} }