OSDN Git Service

QmlCppDebugging: Make sure command line args have spaces in between
authorKai Koehne <kai.koehne@nokia.com>
Wed, 15 Dec 2010 12:06:39 +0000 (13:06 +0100)
committerKai Koehne <kai.koehne@nokia.com>
Wed, 15 Dec 2010 12:08:01 +0000 (13:08 +0100)
src/plugins/debugger/debuggerrunner.cpp

index 6fc36e5..635a2a3 100644 (file)
@@ -53,6 +53,7 @@
 #include <utils/synchronousprocess.h>
 #include <utils/qtcassert.h>
 #include <utils/fancymainwindow.h>
+#include <utils/qtcprocess.h>
 #include <coreplugin/icore.h>
 
 #include <QtCore/QDir>
@@ -628,8 +629,8 @@ static DebuggerStartParameters localStartParameters(RunConfiguration *runConfigu
             sp.projectBuildDir = runConfiguration->target()
                 ->activeBuildConfiguration()->buildDirectory();
 
-        sp.processArgs.append(QLatin1String("-qmljsdebugger=port:")
-            + QString::number(sp.qmlServerPort));
+        Utils::QtcProcess::addArg(&sp.processArgs, QLatin1String("-qmljsdebugger=port:")
+                                  + QString::number(sp.qmlServerPort));
     }
 
     // FIXME: If it's not yet build this will be empty and not filled