Verified Commit b7e667b7 authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

simplify initialUrl handling

parent 9ab3f874
......@@ -53,9 +53,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
// initial url command line parameter
QString initialUrl;
QUrl initialUrl;
if (!parser.positionalArguments().isEmpty())
initialUrl = QUrl::fromUserInput(parser.positionalArguments()[0].toUtf8()).toEncoded();
initialUrl = QUrl::fromUserInput(parser.positionalArguments().first());
engine.rootContext()->setContextProperty("initialUrl", initialUrl);
engine.rootContext()->setContextProperty("webappcontainer", parser.isSet("webapp-container"));
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