Commit f8f235cc 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

BUG: 428339
parent 48b0e798
......@@ -76,6 +76,9 @@ int main( int argc, char *argv[] )
//which is before KAboutData::setApplicationData
// 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);
Supports Markdown
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