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 <orgads@gmail.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Joerg Bornemann
2014-02-19 13:27:33 +01:00
committed by hjk
parent 2ec277bc46
commit 156330cd5d

View File

@@ -706,6 +706,8 @@ void QtcProcess::start()
if (m_useCtrlCStub) { if (m_useCtrlCStub) {
args = QDir::toNativeSeparators(command); args = QDir::toNativeSeparators(command);
command = QCoreApplication::applicationDirPath() + QLatin1String("/qtcreator_ctrlc_stub.exe"); command = QCoreApplication::applicationDirPath() + QLatin1String("/qtcreator_ctrlc_stub.exe");
} else {
args.clear();
} }
QProcess::start(command, QStringList(args)); QProcess::start(command, QStringList(args));
} else { } else {