Use QRC URLs for the initialView value to fix loading from the QRC blob
This commit is contained in:
parent
e95ff989b1
commit
bcff327565
1 changed files with 3 additions and 3 deletions
|
|
@ -370,11 +370,11 @@ int main(int argc, char *argv[])
|
||||||
GlobalCommandLineParser parser;
|
GlobalCommandLineParser parser;
|
||||||
switch (parser.parse(app.arguments())) {
|
switch (parser.parse(app.arguments())) {
|
||||||
case GlobalCommandLineParser::NormalStartRequested:
|
case GlobalCommandLineParser::NormalStartRequested:
|
||||||
initialView = "PcView.qml";
|
initialView = "qrc:/gui/PcView.qml";
|
||||||
break;
|
break;
|
||||||
case GlobalCommandLineParser::StreamRequested:
|
case GlobalCommandLineParser::StreamRequested:
|
||||||
{
|
{
|
||||||
initialView = "CliStartStreamSegue.qml";
|
initialView = "qrc:/gui/CliStartStreamSegue.qml";
|
||||||
StreamingPreferences* preferences = new StreamingPreferences(&app);
|
StreamingPreferences* preferences = new StreamingPreferences(&app);
|
||||||
StreamCommandLineParser streamParser;
|
StreamCommandLineParser streamParser;
|
||||||
streamParser.parse(app.arguments(), preferences);
|
streamParser.parse(app.arguments(), preferences);
|
||||||
|
|
@ -386,7 +386,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
case GlobalCommandLineParser::QuitRequested:
|
case GlobalCommandLineParser::QuitRequested:
|
||||||
{
|
{
|
||||||
initialView = "CliQuitStreamSegue.qml";
|
initialView = "qrc:/gui/CliQuitStreamSegue.qml";
|
||||||
QuitCommandLineParser quitParser;
|
QuitCommandLineParser quitParser;
|
||||||
quitParser.parse(app.arguments());
|
quitParser.parse(app.arguments());
|
||||||
auto launcher = new CliQuitStream::Launcher(quitParser.getHost(), &app);
|
auto launcher = new CliQuitStream::Launcher(quitParser.getHost(), &app);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue