Make sure we always quote the qmldebug command line arguments

Change-Id: I5ce68c238e0ab05d19715659a9cc2161e51e1a7e
Task-number: QTCREATORBUG-20260
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2018-04-16 13:42:43 +02:00
parent fa11070977
commit 17d530d60d
5 changed files with 39 additions and 14 deletions

View File

@@ -477,16 +477,16 @@ void DebuggerRunTool::setCoreFileName(const QString &coreFile, bool isSnapshot)
void DebuggerRunTool::appendInferiorCommandLineArgument(const QString &arg)
{
if (!m_runParameters.inferior.commandLineArguments.isEmpty())
m_runParameters.inferior.commandLineArguments.append(' ');
m_runParameters.inferior.commandLineArguments.append(arg);
QtcProcess::addArg(&m_runParameters.inferior.commandLineArguments, arg,
device() ? device()->osType() : HostOsInfo::hostOs());
}
void DebuggerRunTool::prependInferiorCommandLineArgument(const QString &arg)
{
if (!m_runParameters.inferior.commandLineArguments.isEmpty())
m_runParameters.inferior.commandLineArguments.prepend(' ');
m_runParameters.inferior.commandLineArguments.prepend(arg);
m_runParameters.inferior.commandLineArguments.prepend(
QtcProcess::quoteArg(arg, device() ? device()->osType() : HostOsInfo::hostOs()));
}
void DebuggerRunTool::addQmlServerInferiorCommandLineArgumentIfNeeded()