Commit dbeb36b0 authored by Robert Loehning's avatar Robert Loehning Committed by hjk

debugger: Avoid failing assert in theId()

Change-Id: Ic5895a6c8f8402d4abf0d66ab334caa5815de7dc
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 5d30493a
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment