From 86284e43a6aecf47066a195b77e67805eb8ee7ad Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@nokia.com> Date: Tue, 16 Jun 2009 13:44:45 +0200 Subject: [PATCH] Fixed arguments glitch (ignore empty arguments). --- src/plugins/debugger/debuggerplugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index edb1d9986ff..e4f90707f61 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(); -- GitLab