Commit ca5a4e14 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Fix call to KWorkSpace::detectPlatform

This sets QT_QPA_PLATFORM, so has to happen before the QApplication is
created.

BUG: 428339


(cherry picked from commit f8f235cc)
parent 8a2f51fe
......@@ -76,6 +76,9 @@ int main( int argc, char *argv[] )
//which is before KAboutData::setApplicationData
QCoreApplication::setApplicationName(binaryName);
// This has to be before the QApplication is created.
KWorkSpace::detectPlatform(argc, argv);
QApplication application(argc, argv);
application.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
......@@ -166,7 +169,6 @@ int main( int argc, char *argv[] )
KDBusService service(KDBusService::Unique);
KWorkSpace::detectPlatform(argc, argv);
KQuickAddons::QtQuickSettings::init();
KCrash::initialize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment