Commit d2384796 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix opening file from arguments

Indexing starts at 0, not 1
parent 1ba706f6
......@@ -56,8 +56,8 @@ int main(int argc, char** argv)
else {
const QStringList args = parser.positionalArguments();
QString path;
if (args.count()>1) {
path =;
if (!args.isEmpty()) {
path = args.first();
//no import request, show main window
(new Palapeli::MainWindow(path))->show();
Supports Markdown
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