Commit 8bf3525d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 6f035cb8
......@@ -36,10 +36,10 @@ int main(int argc, char **argv)
parser.process(app);
QString fileName;
if (parser.positionalArguments().count()) {
fileName = parser.positionalArguments().at(0);
} else {
if (parser.positionalArguments().isEmpty()) {
fileName = QFileDialog::getOpenFileName(nullptr, QString(), QString(), QStringLiteral("Zip file (*.zip)"));
} else {
fileName = parser.positionalArguments().at(0);
}
if (fileName.isEmpty()) {
return 0;
......
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