Skip to content
Snippets Groups Projects
Commit 5872d400 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

chatview: allow remote-debugging-port option to be set

- also re-enables the disable-web-security flag

Change-Id: Iabbae6bd78e30be91b42ea08541cb3ab3aea4045
parent 93f37542
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,9 @@ main(int argc, char* argv[])
Qt::HighDpiScaleFactorRoundingPolicy::RoundPreferFloor);
QtWebEngine::initialize();
MainApplication app(argc, argv);
char ARG_DISABLE_WEB_SECURITY[] = "--disable-web-security";
auto newArgv = parseInputArgument(argc, argv, ARG_DISABLE_WEB_SECURITY);
MainApplication app(argc, newArgv);
/*
* Runguard to make sure that only one instance runs at a time.
......
......@@ -257,6 +257,15 @@ MainApplication::parseArguments()
parser.addHelpOption();
parser.addVersionOption();
// This option is forced into the arg list.
QCommandLineOption webSecurityDisableOption(QStringList() << "disable-web-security");
parser.addOption(webSecurityDisableOption);
QCommandLineOption webDebugOption(QStringList() << "remote-debugging-port",
"Web debugging port.",
"port");
parser.addOption(webDebugOption);
QCommandLineOption minimizedOption(QStringList() << "m"
<< "minimized",
"Start minimized.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment