summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-06-16 13:44:45 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-06-16 13:44:45 +0200
commit86284e43a6aecf47066a195b77e67805eb8ee7ad (patch)
tree8af80f98139650b96c736601e08426c172abfd5d /src
parente86e7f960d4314571e80ff103cf992444d257c6d (diff)
downloadqt-creator-86284e43a6aecf47066a195b77e67805eb8ee7ad.tar.gz
Fixed arguments glitch (ignore empty arguments).
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index edb1d9986f..e4f90707f6 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1210,7 +1210,9 @@ void DebuggerPlugin::startExternalApplication()
setConfigValue(_("LastExternalExecutableArguments"),
dlg.executableArguments());
sp->executable = dlg.executableFile();
- sp->processArgs = dlg.executableArguments().split(QLatin1Char(' '));
+ if (!dlg.executableArguments().isEmpty())
+ sp->processArgs = dlg.executableArguments().split(QLatin1Char(' '));
+
if (dlg.breakAtMain())
m_manager->breakByFunctionMain();