aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-05-17 16:52:33 +0800
committerMilan Crha <mcrha@redhat.com>2012-05-17 16:52:33 +0800
commitc29f4f4f081f634ebbe7c7b20d45fc4a61ba2199 (patch)
treed6743df9c8eb0bcf1decd38088b135a944e9b205 /mail/em-account-editor.c
parent9179758e50aa2e094ceb14c6d16b0d46f5d8bb7d (diff)
downloadgsoc2013-evolution-c29f4f4f081f634ebbe7c7b20d45fc4a61ba2199.tar.gz
gsoc2013-evolution-c29f4f4f081f634ebbe7c7b20d45fc4a61ba2199.tar.zst
gsoc2013-evolution-c29f4f4f081f634ebbe7c7b20d45fc4a61ba2199.zip
Restore previously set port in mail account editor only if it was set
Diffstat (limited to 'mail/em-account-editor.c')
-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)) {