[ImageGallery] Check the intrinsics model is not null before using it

This commit is contained in:
Candice Bentéjac 2023-01-26 18:46:02 +01:00
parent 422d9da48c
commit db7fdefacb

View file

@ -125,7 +125,7 @@ RowLayout {
id: choice_component id: choice_component
ComboBox { ComboBox {
id: combo id: combo
model: attribute.desc.values model: attribute.desc !== undefined ? attribute.desc.values : undefined
width: intrinsicModel.columnWidths[columnIndex] width: intrinsicModel.columnWidths[columnIndex]
enabled: !root.readOnly enabled: !root.readOnly