Restore check for parent before getting its width

Delegates that are outside of the viewport may have no parent any more. Don't attempt to find their parents' width.

Contributes to issue CURA-8565.
This commit is contained in:
Ghostkeeper 2021-11-29 16:32:55 +01:00
parent 616bf479e5
commit 61fdd5dc72
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -65,7 +65,7 @@ ListView
delegate: MouseArea
{
width: parent.width
width: parent ? parent.width : 0
height: childrenRect.height
onClicked: