forked from qt-creator/qt-creator
QmlDesigner: Fix TypeError warning in material browser
Change-Id: I8150244aa5556340eea4cec8e4a15825280df742 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -242,6 +242,12 @@ Item {
|
||||
id: materialRepeater
|
||||
|
||||
model: materialBrowserModel
|
||||
|
||||
onItemRemoved: (index, item) => {
|
||||
if (item === root.currMaterialItem)
|
||||
root.currMaterialItem = null
|
||||
}
|
||||
|
||||
delegate: MaterialItem {
|
||||
width: root.cellWidth
|
||||
height: root.cellHeight
|
||||
|
||||
Reference in New Issue
Block a user