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

This commit is contained in:
Bobby R. Ward 2012-02-22 01:52:50 -06:00 committed by Calum Lind
parent eceaa0ae4f
commit 2b01ba43cb
1 changed files with 9 additions and 7 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();
},