Use the current window icon in QIcon::fromTheme()

This prevents removing the application icon when icon lookup fails, on
Mac or MS Windows.
This commit is contained in:
R.J.V. Bertin 2016-11-22 17:55:34 +01:00
parent 88805f7fad
commit ded92cc32a

View file

@ -39,7 +39,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager")));
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"), app.windowIcon()));
KCrash::initialize();