From c1defceccfa77b1854f4c867e1780d320032f763 Mon Sep 17 00:00:00 2001 From: skomerko <168652295+skomerko@users.noreply.github.com> Date: Sun, 2 Mar 2025 10:08:04 +0100 Subject: [PATCH] WebUI: Fix bug where the 'Tracker editing' dialog displays incorrect data In Trackers table, moving the 'URL' column from its default (2) position caused the 'Tracker editing' dialog to display incorrect data. Steps to reproduce: 1. Move 'URL' column in Trackers table to any position from default 2. Choose tracker URL and click 'Edit tracker URL' PR #22338. --- src/webui/www/private/scripts/prop-trackers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/scripts/prop-trackers.js b/src/webui/www/private/scripts/prop-trackers.js index 796b090c1..3f151d5c8 100644 --- a/src/webui/www/private/scripts/prop-trackers.js +++ b/src/webui/www/private/scripts/prop-trackers.js @@ -196,7 +196,7 @@ window.qBittorrent.PropTrackers ??= (() => { if (current_hash.length === 0) return; - const trackerUrl = encodeURIComponent(element.childNodes[1].textContent); + const trackerUrl = encodeURIComponent(torrentTrackersTable.selectedRowsIds()[0]); new MochaUI.Window({ id: "trackersPage", icon: "images/qbittorrent-tray.svg",