aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-05-11 19:46:13 +0800
committerMilan Crha <mcrha@redhat.com>2012-05-11 19:46:13 +0800
commit25a9b4ba8beaf5716fd8642b800c7800a07bbc67 (patch)
tree11f3ce89717feff6e6c02768d4cebd158ab10b0e /mail
parentd2de841ec6dbae4ba9439bf3b30da8d4048ea4de (diff)
downloadgsoc2013-evolution-25a9b4ba8beaf5716fd8642b800c7800a07bbc67.tar
gsoc2013-evolution-25a9b4ba8beaf5716fd8642b800c7800a07bbc67.tar.gz
gsoc2013-evolution-25a9b4ba8beaf5716fd8642b800c7800a07bbc67.tar.bz2
gsoc2013-evolution-25a9b4ba8beaf5716fd8642b800c7800a07bbc67.tar.lz
gsoc2013-evolution-25a9b4ba8beaf5716fd8642b800c7800a07bbc67.tar.xz
gsoc2013-evolution-25a9b4ba8beaf5716fd8642b800c7800a07bbc67.tar.zst
gsoc2013-evolution-25a9b4ba8beaf5716fd8642b800c7800a07bbc67.zip
Bug #675725 - SMTP configuration window forgets custom port
Diffstat (limited to 'mail')
-rw-r--r--mail/em-account-editor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 37133605f4..aedabdd3f5 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2276,6 +2276,15 @@ emae_setup_settings (EMAccountEditorService *service)
}
if (CAMEL_IS_NETWORK_SETTINGS (settings)) {
+ CamelNetworkSettings *network_settings;
+ guint16 port;
+
+ network_settings = CAMEL_NETWORK_SETTINGS (settings);
+
+ /* remember port number as set before binding properties,
+ because changes in auth-mechanism combo can reset the port,
+ thus effectively lost it, when set to other known value */
+ port = camel_network_settings_get_port (network_settings);
/* Even if the service does not need to authenticate, we
* still need to initialize the auth mechanism combo box.
@@ -2322,6 +2331,9 @@ emae_setup_settings (EMAccountEditorService *service)
service->username, "text",
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
+
+ /* restore previously saved port */
+ camel_network_settings_set_port (network_settings, port);
}
if (CAMEL_IS_LOCAL_SETTINGS (settings)) {