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:
Orgad Shaneh
2014-08-26 10:35:08 +03:00
committed by hjk
parent 2693e08768
commit 3a76602777

View File

@@ -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; DebuggerItem di = item;
di.createId(); di.createId();
return addDebugger(di); return addDebugger(di);