Fix #2035: If auto_add_trackers is empty, it is an array

This commit is contained in:
Bobby R. Ward 2012-02-22 13:42:16 +00:00 committed by Calum Lind
parent c5e328c3bd
commit a359374547
1 changed files with 3 additions and 1 deletions

View File

@ -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();
},