forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user