Skip to content

Commit bd01b7c

Browse files
committed
WebUI: Correctly apply changed "save path" of RSS rules
PR qbittorrent#21030. Closes qbittorrent#20141.
1 parent b0ac763 commit bd01b7c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/webui/www/private/views/rssDownloader.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,9 @@
592592
rulesList[rule].torrentParams.save_path = $("saveToText").value;
593593
rulesList[rule].torrentParams.use_auto_tmm = false;
594594
}
595+
else {
596+
rulesList[rule].torrentParams.save_path = "";
597+
}
595598

596599
switch ($("addStoppedCombobox").value) {
597600
case "default":
@@ -742,12 +745,12 @@
742745
$("lastMatchText").textContent = "QBT_TR(Last Match: Unknown)QBT_TR[CONTEXT=AutomatedRssDownloader]";
743746
}
744747

745-
if (rulesList[ruleName].torrentParams.stopped === null)
748+
if ((rulesList[ruleName].torrentParams.stopped === undefined) || (rulesList[ruleName].torrentParams.stopped === null))
746749
$("addStoppedCombobox").value = "default";
747750
else
748751
$("addStoppedCombobox").value = rulesList[ruleName].torrentParams.stopped ? "always" : "never";
749752

750-
if (rulesList[ruleName].torrentParams.content_layout === null)
753+
if ((rulesList[ruleName].torrentParams.content_layout === undefined) || (rulesList[ruleName].torrentParams.content_layout === null))
751754
$("contentLayoutCombobox").value = "Default";
752755
else
753756
$("contentLayoutCombobox").value = rulesList[ruleName].torrentParams.content_layout;

0 commit comments

Comments
 (0)