Skip to content
Snippets Groups Projects
Commit 22b526ff authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Fix crash for component source drop


Task-number: QTCREATORBUG-10372
Change-Id: I0b56bf4998dbbdeb690622078d61c672d012ed5a
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent ddaafc0e
No related branches found
No related tags found
No related merge requests found
......@@ -176,8 +176,10 @@ void ComponentView::searchForComponentAndAddToList(const ModelNode &node)
description = parentNode.simplifiedTypeName() + QLatin1Char(' ');
else
description = parentNode.id() + QLatin1Char(' ');
description += node.parentProperty().name();
}
description += node.parentProperty().name();
QStandardItem *item = new QStandardItem(description);
item->setData(QVariant::fromValue(node.internalId()), ModelNodeRole);
item->setEditable(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment