Verified Commit fc6ac8fe authored by Rinigus Saar's avatar Rinigus Saar Committed by Jonah Brüchert
Browse files

set initialUrl as a string

parent 05dfd658
...@@ -58,7 +58,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) ...@@ -58,7 +58,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QUrl initialUrl; QUrl initialUrl;
if (!parser.positionalArguments().isEmpty()) if (!parser.positionalArguments().isEmpty())
initialUrl = QUrl::fromUserInput(parser.positionalArguments().first()); initialUrl = QUrl::fromUserInput(parser.positionalArguments().first());
engine.rootContext()->setContextProperty("initialUrl", initialUrl); engine.rootContext()->setContextProperty("initialUrl", initialUrl.url());
engine.rootContext()->setContextProperty("webappcontainer", parser.isSet("webapp-container")); 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