From a7eb792372f664efb58b91bde99261632bee7fff Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 11 Jan 2020 22:24:37 +0300 Subject: [PATCH] WebUI: Fix first row renaming in files tab Ids started from zero and first row converts to false. Closes #11826. --- src/webui/www/private/scripts/prop-files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/scripts/prop-files.js b/src/webui/www/private/scripts/prop-files.js index bd2a28e9b..5fc753f2c 100644 --- a/src/webui/www/private/scripts/prop-files.js +++ b/src/webui/www/private/scripts/prop-files.js @@ -524,7 +524,7 @@ window.qBittorrent.PropFiles = (function() { const hash = torrentsTable.getCurrentTorrentHash(); if (!hash) return; const rowId = torrentFilesTable.selectedRowsIds()[0]; - if (!rowId) return; + if (rowId === undefined) return; const row = torrentFilesTable.rows[rowId]; if (!row) return; const node = torrentFilesTable.getNode(rowId);