diff options
author | hjk <hjk@qt.io> | 2019-07-23 12:39:05 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-07-23 16:03:02 +0000 |
commit | fa81f76237ea29c8e38c913f94ef36bbe6bf42b8 (patch) | |
tree | 46907dcd2161c95e5018c3c58a22c44d2c9cf070 /src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp | |
parent | 8b72e9216746c04e68a1c6498ac3396942fbebce (diff) |
Utils: Move meta char policy handling from FilePath to ConsoleProcess
Currently the only place that's using it and the scope is much smaller.
Change-Id: I1a43d14f0e2c69a16f76e6f83b82436bbeeac1c9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp')
-rw-r--r-- | src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp b/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp index a73ac07483..19ca79d0c2 100644 --- a/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp +++ b/src/plugins/projectexplorer/devicesupport/sshdeviceprocess.cpp @@ -201,9 +201,8 @@ void SshDeviceProcess::handleConnected() this, &SshDeviceProcess::handleProcessStarted); connect(&d->consoleProcess, &ConsoleProcess::stubStopped, this, [this] { handleProcessFinished(d->consoleProcess.errorString()); }); - d->consoleProcess.setCommand({FilePath::fromString(cmdLine.first()), - cmdLine.mid(1), - CommandLine::MetaCharMode::Ignore}); + d->consoleProcess.setAbortOnMetaChars(false); + d->consoleProcess.setCommand({cmdLine.first(), cmdLine.mid(1)}); d->consoleProcess.start(); } else { connect(d->process.get(), &QSsh::SshRemoteProcess::started, |