diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index e8cfa0755..09f7fc50e 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -761,13 +761,13 @@ window.qBittorrent.DynamicTable ??= (() => { } let select = false; - for (const tr of this.getTrs()) { - if ((tr.rowId === rowId1) || (tr.rowId === rowId2)) { + for (const row of this.getFilteredAndSortedRows()) { + if ((row.rowId === rowId1) || (row.rowId === rowId2)) { select = !select; - this.selectedRows.push(tr.rowId); + this.selectedRows.push(row.rowId); } else if (select) { - this.selectedRows.push(tr.rowId); + this.selectedRows.push(row.rowId); } } this.setRowClass();