Debugger: Avoid having an empty tab title when attaching to core

Change-Id: I7327ef6f350fbff3c1beffe51c65d7ce708caae0
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2019-05-28 15:54:31 +02:00
parent 948c149bc7
commit 5261892fc5

View File

@@ -1597,11 +1597,11 @@ void DebuggerPluginPrivate::attachCore()
auto runControl = new RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
runControl->setKit(dlg.kit());
runControl->setDisplayName(tr("Core file \"%1\"")
.arg(dlg.useLocalCoreFile() ? dlg.localCoreFile() : dlg.remoteCoreFile()));
auto debugger = new DebuggerRunTool(runControl);
debugger->setInferiorExecutable(dlg.symbolFile());
debugger->setCoreFileName(dlg.localCoreFile());
debugger->setRunControlName(tr("Core file \"%1\"")
.arg(dlg.useLocalCoreFile() ? dlg.localCoreFile() : dlg.remoteCoreFile()));
debugger->setStartMode(AttachCore);
debugger->setCloseMode(DetachAtClose);
debugger->setOverrideStartScript(dlg.overrideStartScript());