diff --git a/launcher/cli/main.cpp b/launcher/cli/main.cpp index 54960f7793..74e22ce634 100644 --- a/launcher/cli/main.cpp +++ b/launcher/cli/main.cpp @@ -351,8 +351,8 @@ int main(int argc, char **argv) #endif return launcher.exitCode(); } else { - QObject::connect(&launcher, &Launcher::finished, &app, &QApplication::quit); - QObject::connect(&launcher, &Launcher::attached, &app, &QApplication::quit); + QObject::connect(&launcher, &Launcher::finished, &app, &QCoreApplication::quit); + QObject::connect(&launcher, &Launcher::attached, &app, &QCoreApplication::quit); } auto result = app.exec(); return result == 0 ? launcher.exitCode() : result;