mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: Fix first row renaming in files tab
Ids started from zero and first row converts to false. Closes #11826.
This commit is contained in:
@@ -524,7 +524,7 @@ window.qBittorrent.PropFiles = (function() {
|
|||||||
const hash = torrentsTable.getCurrentTorrentHash();
|
const hash = torrentsTable.getCurrentTorrentHash();
|
||||||
if (!hash) return;
|
if (!hash) return;
|
||||||
const rowId = torrentFilesTable.selectedRowsIds()[0];
|
const rowId = torrentFilesTable.selectedRowsIds()[0];
|
||||||
if (!rowId) return;
|
if (rowId === undefined) return;
|
||||||
const row = torrentFilesTable.rows[rowId];
|
const row = torrentFilesTable.rows[rowId];
|
||||||
if (!row) return;
|
if (!row) return;
|
||||||
const node = torrentFilesTable.getNode(rowId);
|
const node = torrentFilesTable.getNode(rowId);
|
||||||
|
|||||||
Reference in New Issue
Block a user