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>
This commit is contained in:
hjk
2019-07-23 12:39:05 +02:00
parent 8b72e92167
commit fa81f76237
6 changed files with 13 additions and 13 deletions

View File

@@ -65,6 +65,11 @@ void ConsoleProcess::setCommand(const Utils::CommandLine &command)
d->m_commandLine = command;
}
void ConsoleProcess::setAbortOnMetaChars(bool abort)
{
d->m_abortOnMetaChars = abort;
}
void ConsoleProcess::setSettings(QSettings *settings)
{
d->m_settings = settings;
@@ -84,8 +89,8 @@ bool ConsoleProcess::start()
HostOsInfo::hostOs(),
&d->m_environment,
&d->m_workingDir,
d->m_commandLine.metaCharMode()
== CommandLine::MetaCharMode::Abort);
d->m_abortOnMetaChars);
QString pcmd;
if (perr == QtcProcess::SplitOk) {
pcmd = d->m_commandLine.executable().toString();