From e957f8f90e3581a107b517e21e8e568624c14b15 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 21 Jul 2023 11:16:47 +0300 Subject: [PATCH] Fix kdeconnect daemon quitting in Qt6 --- daemon/kdeconnectd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 863d0eff6..97e33bf72 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -132,6 +132,9 @@ int main(int argc, char *argv[]) detectPlatform(argc, argv); QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#if QT_VERSION_MAJOR == 6 + QGuiApplication::setQuitLockEnabled(false); +#endif QApplication app(argc, argv); KAboutData aboutData(QStringLiteral("kdeconnect.daemon"),