forked from qt-creator/qt-creator
QmlDesigner: Fix crash for component source drop
Task-number: QTCREATORBUG-10372 Change-Id: I0b56bf4998dbbdeb690622078d61c672d012ed5a Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user