mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-02 08:57:53 -07:00
fix: cockatrice quits properly when the window is closed (#3329)
This commit is contained in:
committed by
ctrlaltca
parent
135c02ea41
commit
c58abadff1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user