mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 00:11:21 +00:00
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:
parent
88805f7fad
commit
ded92cc32a
|
@ -39,7 +39,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
|
||||||
{
|
{
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
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();
|
KCrash::initialize();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue