Commit 156330cd authored by Joerg Bornemann's avatar Joerg Bornemann Committed by hjk

QtcProcess: pass arguments only once to child process

When not using the ctrlc stub, then the whole arguments string was
passed to QProcess::start as one argument, prefixed to the actual
arguments.

Task-number: QTCREATORBUG-11514

Change-Id: I8111749b5c2f0a0abbfa3e9f8441bb5cdcfe0531
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 2ec277bc
......@@ -706,6 +706,8 @@ void QtcProcess::start()
if (m_useCtrlCStub) {
args = QDir::toNativeSeparators(command);
command = QCoreApplication::applicationDirPath() + QLatin1String("/qtcreator_ctrlc_stub.exe");
} else {
args.clear();
}
QProcess::start(command, QStringList(args));
} else {
......
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