forked from qt-creator/qt-creator
QmlDesigner: Fix crash in project storage builds
Display name does not work at all and makes no sense here. We use the first exported type name. Task-number: QDS-15029 Change-Id: I825447e18c940996dc7c80ff9ff31aded7d8b666 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
aa3d61da93
commit
4d93a8b663
@@ -260,8 +260,12 @@ void BindingEditor::prepareBindings()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!binding.properties.isEmpty()) {
|
if (!binding.properties.isEmpty()) {
|
||||||
binding.item = metaInfo.displayName();
|
for (auto &exportedType :
|
||||||
bindings.append(binding);
|
metaInfo.exportedTypeNamesForSourceId(model->fileUrlSourceId())) {
|
||||||
|
binding.item = exportedType.name.toQString();
|
||||||
|
bindings.append(binding);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user