forked from qt-creator/qt-creator
Debugger: Fix soft assertion
SOFT ASSERT: "!m_id.isValid()" in file .../debuggeritem.cpp, line 92
Introduced in 5b5a7d1dea
Change-Id: I82416302402770d885f8eb96b6966294a5368cbe
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -389,7 +389,10 @@ QVariant DebuggerItemManager::registerDebugger(const DebuggerItem &item)
|
||||
}
|
||||
}
|
||||
|
||||
// Nothing suitable. Create a new id and add the item.
|
||||
// If item already has an id, add it. Otherwise, create a new id.
|
||||
if (item.id().isValid())
|
||||
return addDebugger(item);
|
||||
|
||||
DebuggerItem di = item;
|
||||
di.createId();
|
||||
return addDebugger(di);
|
||||
|
||||
Reference in New Issue
Block a user