Commit 5df8b32f authored by Adriaan de Groot's avatar Adriaan de Groot 💬
Browse files

viewer: exit immediately when --quit is used

parent de4d86ce
......@@ -70,10 +70,9 @@ int main(int argc, char **argv)
} else {
app.setShowDetails(parser.isSet(QStringLiteral("details")));
app.subscribe(parser.positionalArguments());
if (parser.isSet(QStringLiteral("quit"))) {
QTimer::singleShot(std::chrono::seconds(1), &app, &QCoreApplication::quit);
if (!parser.isSet(QStringLiteral("quit"))) {
app.exec();
}
app.exec();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment