From ded92cc32ada1fd3fc8bcc90d8dc07f6d3ab291c Mon Sep 17 00:00:00 2001 From: "R.J.V. Bertin" Date: Tue, 22 Nov 2016 17:55:34 +0100 Subject: [PATCH] Use the current window icon in QIcon::fromTheme() This prevents removing the application icon when icon lookup fails, on Mac or MS Windows. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 8987d351f..acba8daed 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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(); -- 2.47.3