forked from qt-creator/qt-creator
QmlDesigner: Fix crash
Change-Id: Ie2d2b2226c576997af3e86c79ea8f9cb0cf66964 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -298,6 +298,9 @@ AbstractProperty DynamicPropertiesModel::abstractPropertyForRow(int rowNumber) c
|
||||
const int internalId = data(index(rowNumber, TargetModelNodeRow), Qt::UserRole + 1).toInt();
|
||||
const QString targetPropertyName = data(index(rowNumber, TargetModelNodeRow), Qt::UserRole + 2).toString();
|
||||
|
||||
if (!connectionView()->isAttached())
|
||||
return AbstractProperty();
|
||||
|
||||
ModelNode modelNode = connectionView()->modelNodeForInternalId(internalId);
|
||||
|
||||
if (modelNode.isValid())
|
||||
|
||||
Reference in New Issue
Block a user