Skip to content

Commit 642a9c2

Browse files
WebUI: remove deleted torrents even if they are currently filtered out
Remove the torrent row regardless of it being visible. I've also removed the return value because: * it doesn't appear to be used by any caller; * other functions (e.g. updateRowData) do not return any value; * it's not clear whether true refers to the torrent being removed from the list of all torrents or just the visible ones. Closes #21070. PR #21071.
1 parent 9d494e8 commit 642a9c2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/webui/www/private/scripts/dynamicTable.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -827,13 +827,11 @@ window.qBittorrent.DynamicTable ??= (() => {
827827

828828
removeRow: function(rowId) {
829829
this.selectedRows.erase(rowId);
830+
if (this.rows.has(rowId))
831+
this.rows.erase(rowId);
830832
const tr = this.getTrByRowId(rowId);
831-
if (tr !== null) {
833+
if (tr !== null)
832834
tr.destroy();
833-
this.rows.erase(rowId);
834-
return true;
835-
}
836-
return false;
837835
},
838836

839837
clear: function() {

0 commit comments

Comments
 (0)