aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/em-account-editor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index a833a9bf9d..ad32e26df2 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2334,8 +2334,9 @@ emae_setup_settings (EMAccountEditorService *service)
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
- /* restore previously saved port */
- camel_network_settings_set_port (network_settings, port);
+ /* restore previously saved port, if set */
+ if (port > 0)
+ camel_network_settings_set_port (network_settings, port);
}
if (CAMEL_IS_LOCAL_SETTINGS (settings)) {