1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +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
// 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::setThemeName(QSL("oxygen-fallback"));
}