forked from qt-creator/qt-creator
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:
@@ -4069,7 +4069,7 @@ void GdbEngine::loadInitScript()
|
||||
).arg(script));
|
||||
}
|
||||
} else {
|
||||
const QString commands = nativeStartupCommands();
|
||||
const QString commands = nativeStartupCommands().trimmed();
|
||||
if (!commands.isEmpty())
|
||||
runCommand({commands});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user