From 25df666f1a5701a26c2d3839a8449a561fbc1b5c Mon Sep 17 00:00:00 2001 From: waaake Date: Wed, 18 Dec 2024 12:40:56 +0530 Subject: [PATCH] [ui] DelegateSelectionBox: Updated selection to refer to the actual item rather than the loader delegate --- meshroom/ui/qml/Controls/DelegateSelectionBox.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshroom/ui/qml/Controls/DelegateSelectionBox.qml b/meshroom/ui/qml/Controls/DelegateSelectionBox.qml index a6034c8ac3..94b51919ea 100644 --- a/meshroom/ui/qml/Controls/DelegateSelectionBox.qml +++ b/meshroom/ui/qml/Controls/DelegateSelectionBox.qml @@ -21,7 +21,7 @@ SelectionBox { let selectedIndices = []; const mappedSelectionRect = mapToItem(container, selectionRect); for (var i = 0; i < modelInstantiator.count; ++i) { - const delegate = modelInstantiator.itemAt(i); + const delegate = modelInstantiator.itemAt(i).item; const delegateRect = Qt.rect(delegate.x, delegate.y, delegate.width, delegate.height); if (Geom2D.rectRectIntersect(mappedSelectionRect, delegateRect)) { selectedIndices.push(i);