ensure the port is a Number

This commit is contained in:
Damien Churchill 2009-08-24 20:08:03 +00:00
commit bcbe3108c9

View file

@ -82,7 +82,7 @@ Ext.deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
return { return {
'type': this.type.getValue(), 'type': this.type.getValue(),
'hostname': this.hostname.getValue(), 'hostname': this.hostname.getValue(),
'port': this.port.getValue(), 'port': Number(this.port.getValue()),
'username': this.username.getValue(), 'username': this.username.getValue(),
'password': this.password.getValue() 'password': this.password.getValue()
} }