Commit 910a1316 authored by Burak Hancerli's avatar Burak Hancerli 🍻 Committed by Albert Astals Cid
Browse files

Fix couple of issues related to the commandline example

parent d12f48ee
......@@ -41,7 +41,7 @@ Later on, we start processing positional arguments, but only if there is one. Ot
```c++
if (parser.positionalArguments().count() > 0) {
window->openFile(QUrl::fromUserInput(parser.positionalArguments().at(0), QDir::currentPath()));
window->openFileFromUrl(QUrl::fromUserInput(parser.positionalArguments().at(0), QDir::currentPath()));
}
```
......
......@@ -49,7 +49,7 @@ int main (int argc, char *argv[])
window->show();
if (parser.positionalArguments().count() > 0) {
window->openFile(QUrl::fromUserInput(parser.positionalArguments().at(0), QDir::currentPath()));
window->openFileFromUrl(QUrl::fromUserInput(parser.positionalArguments().at(0), QDir::currentPath()));
}
return 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