[#2913] [Notifications] Fix webui passing string for port value

This commit is contained in:
Calum Lind 2017-03-20 18:51:43 +00:00
parent cc69c9c85b
commit f870741d9d

View file

@ -380,7 +380,7 @@ Deluge.ux.preferences.NotificationsPage = Ext.extend(Ext.Panel, {
config['smtp_enabled'] = this.chkEnableEmail.getValue();
config['smtp_host'] = this.hBoxHost.getComponent(1).getValue();
config['smtp_port'] = this.hBoxPort.getComponent(1).getValue();
config['smtp_port'] = Number(this.hBoxPort.getComponent(1).getValue());
config['smtp_user'] = this.hBoxUser.getComponent(1).getValue();
config['smtp_pass'] = this.hBoxPassword.getComponent(1).getValue();
config['smtp_from'] = this.hBoxFrom.getComponent(1).getValue();