fix: cockatrice quits properly when the window is closed (#3329)

This commit is contained in:
Alessandro Marzialetti 2018-08-27 15:01:53 +02:00 committed by ctrlaltca
parent 135c02ea41
commit c58abadff1

View file

@ -88,6 +88,8 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
qInstallMessageHandler(CockatriceLogger);
if (app.arguments().contains("--debug-output"))
Logger::getInstance().logToFile(true);