[evolution/gnome-3-4] Restore previously set port in mail account editor only if it was set
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-4] Restore previously set port in mail account editor only if it was set
- Date: Thu, 17 May 2012 08:55:38 +0000 (UTC)
commit e6922f0b07c84040634d3163d1ced9b458514f11
Author: Milan Crha <mcrha redhat com>
Date: Thu May 17 10:55:20 2012 +0200
Restore previously set port in mail account editor only if it was set
mail/em-account-editor.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index b66d928..315121d 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2332,8 +2332,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)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]