Skip to content

Commit

Permalink
Allow 3 AutoGTP quitting conditions.
Browse files Browse the repository at this point in the history
Pull request #1580.
  • Loading branch information
alreadydone authored and gcp committed Jun 26, 2018
1 parent 0c23ac6 commit 9480689
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions autogtp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ int main(int argc, char *argv[]) {
if (parser.isSet(timeoutOption)) {
QObject::connect(timer, &QTimer::timeout, &app, &QCoreApplication::quit);
timer->start(parser.value(timeoutOption).toInt() * 60000);
} else {
if (parser.isSet(singleOption) || parser.isSet(maxOption)) {
QObject::connect(boss, &Management::sendQuit, &app, &QCoreApplication::quit);
} else {
cons = new Console();
QObject::connect(cons, &Console::sendQuit, &app, &QCoreApplication::quit);
}
}
if (parser.isSet(singleOption) || parser.isSet(maxOption)) {
QObject::connect(boss, &Management::sendQuit, &app, &QCoreApplication::quit);
}
if (true) {
cons = new Console();
QObject::connect(cons, &Console::sendQuit, &app, &QCoreApplication::quit);
}
return app.exec();
}

0 comments on commit 9480689

Please sign in to comment.