diff options
| author | R.J.V. Bertin <[email protected]> | 2016-11-22 17:55:34 +0100 |
|---|---|---|
| committer | R.J.V. Bertin <[email protected]> | 2016-11-22 17:55:34 +0100 |
| commit | ded92cc32ada1fd3fc8bcc90d8dc07f6d3ab291c (patch) | |
| tree | e7f0dcd1cabfe960ccaaa4084284f3a6d1a7adcb /src | |
| parent | 88805f7fad91b8d082f962462d1f8030a9c070c1 (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')
| -rw-r--r-- | src/main.cpp | 2 |
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(); |
