Fix #2035: If auto_add_trackers is empty, it is an array
This commit is contained in:
parent
eceaa0ae4f
commit
2b01ba43cb
|
@ -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