Skip to content

Commit

Permalink
Failure to build with DGAMMARAY_BUILD_UI=OFF in absence of QWidgets
Browse files Browse the repository at this point in the history
Fixes #977 by making suggested change to connect to QCoreApplication
  • Loading branch information
Cuperino committed Apr 17, 2024
1 parent ab800c7 commit c10eb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launcher/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c10eb7a

Please sign in to comment.