Fix kdeconnect daemon quitting in Qt6

This commit is contained in:
Alexander Lohnau 2023-07-21 11:16:47 +03:00
parent 6e8abd75e8
commit e957f8f90e

View file

@ -132,6 +132,9 @@ int main(int argc, char *argv[])
detectPlatform(argc, argv); detectPlatform(argc, argv);
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#if QT_VERSION_MAJOR == 6
QGuiApplication::setQuitLockEnabled(false);
#endif
QApplication app(argc, argv); QApplication app(argc, argv);
KAboutData aboutData(QStringLiteral("kdeconnect.daemon"), KAboutData aboutData(QStringLiteral("kdeconnect.daemon"),