diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-03-19 14:27:17 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-03-19 14:38:06 (GMT) |
commit | 681f54aabb89309b66ee4e5b229d7d1fd2e0e78d (patch) | |
tree | 041db42ba3b4d4352020ff01c4377d3f26a668d2 /src/corelib | |
parent | 2969a34664430338875e9786935b865aec0252de (diff) | |
download | Qt-681f54aabb89309b66ee4e5b229d7d1fd2e0e78d.zip Qt-681f54aabb89309b66ee4e5b229d7d1fd2e0e78d.tar.gz Qt-681f54aabb89309b66ee4e5b229d7d1fd2e0e78d.tar.bz2 |
Removed extra space from the command line passed to QProcess in Symbian
Task-number: QTBUG-8906
Reviewed-by: Janne Koskinen
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/io/qprocess_symbian.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/corelib/io/qprocess_symbian.cpp b/src/corelib/io/qprocess_symbian.cpp index e37bdda..85c89d5 100644 --- a/src/corelib/io/qprocess_symbian.cpp +++ b/src/corelib/io/qprocess_symbian.cpp @@ -237,11 +237,15 @@ static void qt_create_symbian_commandline(const QStringList &arguments, QString --i; endQuote += QLatin1String("\\"); } - commandLine += QLatin1String(" \"") + tmp.left(i) + endQuote; + commandLine += QLatin1String("\"") + tmp.left(i) + endQuote + QLatin1Char(' '); } else { - commandLine += QLatin1Char(' ') + tmp; + commandLine += tmp + QLatin1Char(' '); } } + + // Chop the extra trailing space if any arguments were appended + if (arguments.size()) + commandLine.chop(1); } static TInt qt_create_symbian_process(RProcess **proc, const QString &programName, const QStringList &arguments) |