From c10eb7a5d8f202d1cd54b336779af9a222a2567e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20O=2E=20Cordero=20P=C3=A9rez?= Date: Tue, 16 Apr 2024 21:33:18 -0400 Subject: [PATCH] Failure to build with DGAMMARAY_BUILD_UI=OFF in absence of QWidgets Fixes #977 by making suggested change to connect to QCoreApplication --- launcher/cli/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;