forked from qt-creator/qt-creator
debugger: Avoid failing assert in theId()
Change-Id: Ic5895a6c8f8402d4abf0d66ab334caa5815de7dc Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -1619,7 +1619,9 @@ void DebuggerPluginPrivate::attachCore()
|
||||
{
|
||||
AttachCoreDialog dlg(mainWindow());
|
||||
|
||||
dlg.setKitId(Id(configValue(_("LastExternalKit")).toString()));
|
||||
const QString lastExternalKit = configValue(_("LastExternalKit")).toString();
|
||||
if (!lastExternalKit.isEmpty())
|
||||
dlg.setKitId(Id(lastExternalKit));
|
||||
dlg.setLocalExecutableFile(configValue(_("LastExternalExecutableFile")).toString());
|
||||
dlg.setLocalCoreFile(configValue(_("LastLocalCoreFile")).toString());
|
||||
dlg.setRemoteCoreFile(configValue(_("LastRemoteCoreFile")).toString());
|
||||
|
||||
Reference in New Issue
Block a user