[evolution/gnome-3-4] Reset port to 0 for mail accounts which don't use the Port widget



commit 13a5deec6a3bffa53049434b5413f4e20612782b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 11 18:14:22 2012 +0200

    Reset port to 0 for mail accounts which don't use the Port widget

 mail/em-account-editor.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 4d5d829..8d796f4 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2333,8 +2333,10 @@ emae_setup_settings (EMAccountEditorService *service)
 			G_BINDING_SYNC_CREATE);
 
 		/* restore previously saved port, if set */
-		if (port > 0)
+		if (port > 0 && emae_get_store_visible_port (service->emae))
 			camel_network_settings_set_port (network_settings, port);
+		else
+			camel_network_settings_set_port (network_settings, 0);
 	}
 
 	if (CAMEL_IS_LOCAL_SETTINGS (settings)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]