Commit 3a766027 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

Debugger: Fix soft assertion

SOFT ASSERT: "!m_id.isValid()" in file .../debuggeritem.cpp, line 92

Introduced in 5b5a7d1d

Change-Id: I82416302402770d885f8eb96b6966294a5368cbe
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 2693e087
......@@ -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);
......
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