Commit cba541a6 authored by David Jarvie's avatar David Jarvie
Browse files

Fix crash if --nofork option is used

parent bcedff75
......@@ -225,6 +225,8 @@ QStringList CommandOptions::setOptions(QCommandLineParser* parser, const QString
for (int i = 0; i < args.size(); ++i)
{
const QString arg = args[i];
if (arg == QStringLiteral("--nofork"))
continue; // Ignore debugging option
arguments << arg;
if (arg == optionName(EXEC) || arg == optionName(EXEC, true)
|| arg == optionName(EXEC_DISPLAY) || arg == optionName(EXEC_DISPLAY, true))
......
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