Skip to content

Commit 1a5c790

Browse files
committed
[ui] DelegateSelectionBox: Updated selection to refer to the actual item rather than the loader delegate
1 parent 8cf448c commit 1a5c790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshroom/ui/qml/Controls/DelegateSelectionBox.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ SelectionBox {
2121
let selectedIndices = [];
2222
const mappedSelectionRect = mapToItem(container, selectionRect);
2323
for (var i = 0; i < modelInstantiator.count; ++i) {
24-
const delegate = modelInstantiator.itemAt(i);
24+
const delegate = modelInstantiator.itemAt(i).item;
2525
const delegateRect = Qt.rect(delegate.x, delegate.y, delegate.width, delegate.height);
2626
if (Geom2D.rectRectIntersect(mappedSelectionRect, delegateRect)) {
2727
selectedIndices.push(i);

0 commit comments

Comments
 (0)