Fix #2035: If auto_add_trackers is empty, it is an array
This commit is contained in:
parent
c5e328c3bd
commit
a359374547
|
@ -330,7 +330,9 @@ Deluge.ux.LabelOptionsWindow = Ext.extend(Ext.Window, {
|
|||
|
||||
onOkClick: function() {
|
||||
var values = this.form.getForm().getFieldValues();
|
||||
values['auto_add_trackers'] = values['auto_add_trackers'].split('\n');
|
||||
if (values['auto_add_trackers']) {
|
||||
values['auto_add_trackers'] = values['auto_add_trackers'].split('\n');
|
||||
}
|
||||
deluge.client.label.set_options(this.label, values);
|
||||
this.hide();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue