Commit bd01b7c 1 parent b0ac763 commit bd01b7c Copy full SHA for bd01b7c
File tree 1 file changed +5
-2
lines changed
src/webui/www/private/views
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 592
592
rulesList [ rule ] . torrentParams . save_path = $ ( "saveToText" ) . value ;
593
593
rulesList [ rule ] . torrentParams . use_auto_tmm = false ;
594
594
}
595
+ else {
596
+ rulesList [ rule ] . torrentParams . save_path = "" ;
597
+ }
595
598
596
599
switch ( $ ( "addStoppedCombobox" ) . value ) {
597
600
case "default" :
742
745
$ ( "lastMatchText" ) . textContent = "QBT_TR(Last Match: Unknown)QBT_TR[CONTEXT=AutomatedRssDownloader]" ;
743
746
}
744
747
745
- if ( rulesList [ ruleName ] . torrentParams . stopped === null )
748
+ if ( ( rulesList [ ruleName ] . torrentParams . stopped === undefined ) || ( rulesList [ ruleName ] . torrentParams . stopped === null ) )
746
749
$ ( "addStoppedCombobox" ) . value = "default" ;
747
750
else
748
751
$ ( "addStoppedCombobox" ) . value = rulesList [ ruleName ] . torrentParams . stopped ? "always" : "never" ;
749
752
750
- if ( rulesList [ ruleName ] . torrentParams . content_layout === null )
753
+ if ( ( rulesList [ ruleName ] . torrentParams . content_layout === undefined ) || ( rulesList [ ruleName ] . torrentParams . content_layout === null ) )
751
754
$ ( "contentLayoutCombobox" ) . value = "Default" ;
752
755
else
753
756
$ ( "contentLayoutCombobox" ) . value = rulesList [ ruleName ] . torrentParams . content_layout ;
You can’t perform that action at this time.
0 commit comments