┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorR.J.V. Bertin <[email protected]>2016-11-22 17:55:34 +0100
committerR.J.V. Bertin <[email protected]>2016-11-22 17:55:34 +0100
commitded92cc32ada1fd3fc8bcc90d8dc07f6d3ab291c (patch)
treee7f0dcd1cabfe960ccaaa4084284f3a6d1a7adcb /src/main.cpp
parent88805f7fad91b8d082f962462d1f8030a9c070c1 (diff)
Use the current window icon in QIcon::fromTheme()
This prevents removing the application icon when icon lookup fails, on Mac or MS Windows.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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();