fix: cockatrice quits properly when the window is closed (#3329)
This commit is contained in:
parent
135c02ea41
commit
c58abadff1
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
|
QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
|
||||||
|
|
||||||
qInstallMessageHandler(CockatriceLogger);
|
qInstallMessageHandler(CockatriceLogger);
|
||||||
if (app.arguments().contains("--debug-output"))
|
if (app.arguments().contains("--debug-output"))
|
||||||
Logger::getInstance().logToFile(true);
|
Logger::getInstance().logToFile(true);
|
||||||
|
|
Loading…
Reference in a new issue