Commit ba40ce0e authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Fix command-line argument handling

parent 4277751b
......@@ -26,7 +26,7 @@ int main (int argc, char * argv []) {
for (const QString & arg : argsList) {
const QFileInfo info (arg);
if (info.exists () && info.isFile () && info.suffix ().toLower () == "qml") {
Manager::instance ().load (info.absoluteFilePath ());
Manager::instance ().load (QUrl::fromLocalFile (info.absoluteFilePath ()).toString ());
break;
}
}
......
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