Debugger: Trim user startup command input before usage

No need to push empty lines etc.

Change-Id: I16862e9cc1fe19ced1000a954c71a4044ed9d0ac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-02-14 16:50:54 +01:00
parent bccda22cce
commit e051c9c28b

View File

@@ -4069,7 +4069,7 @@ void GdbEngine::loadInitScript()
).arg(script));
}
} else {
const QString commands = nativeStartupCommands();
const QString commands = nativeStartupCommands().trimmed();
if (!commands.isEmpty())
runCommand({commands});
}