Skip to content

Commit

Permalink
Improve performance of NATV row selection
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jul 24, 2024
1 parent a6ae8b4 commit 672b8d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ Item
let newVisibleRows = allProxyRows.map(row => proxyModel.mapToSourceRow(row));
root.visibleRows = newVisibleRows;

let newSelectedRows = root.selectedRows.filter(row => newVisibleRows.includes(row));
let newSelectedRows = Utils.arrayIntersection(root.selectedRows, root.visibleRows);
root.clearAndSelectRows(newSelectedRows);

verticalTableViewScrollBar.position = 0;
Expand Down

0 comments on commit 672b8d4

Please sign in to comment.