From 76e43759c7cf51b0a9d01a1ddd9309223b041e4c Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 29 Nov 2021 16:32:55 +0100 Subject: [PATCH] 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. --- plugins/Marketplace/resources/qml/Packages.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Marketplace/resources/qml/Packages.qml b/plugins/Marketplace/resources/qml/Packages.qml index 47318d5a72..49fca00fdb 100644 --- a/plugins/Marketplace/resources/qml/Packages.qml +++ b/plugins/Marketplace/resources/qml/Packages.qml @@ -65,7 +65,7 @@ ListView delegate: MouseArea { - width: parent.width + width: parent ? parent.width : 0 height: childrenRect.height onClicked: