QmlDesigner: Easen assert on non-fatal double qml node insert

Change-Id: I3ca0d0c5427f548e249bdc3af2fd1d8281544ba7
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tapani Mattila
2021-02-19 12:40:07 +02:00
parent fd6446e07b
commit 130e05845c

View File

@@ -186,7 +186,7 @@ FormEditorItem *FormEditorScene::addFormEditorItem(const QmlItemNode &qmlItemNod
else
formEditorItem = new FormEditorItem(qmlItemNode, this);
Q_ASSERT(!m_qmlItemNodeItemHash.contains(qmlItemNode));
QTC_ASSERT(!m_qmlItemNodeItemHash.contains(qmlItemNode), ;);
m_qmlItemNodeItemHash.insert(qmlItemNode, formEditorItem);
if (qmlItemNode.isRootNode()) {