aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-account-editor.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 88ebea6dc9..499a36c4b8 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2008-06-13 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #314467
+
+ * em-account-editor.c: (emae_url_set_hostport):
+ Reset port when setting host name without it.
+
2008-06-09 Milan Crha <mcrha@redhat.com>
** Fix for bug #535791
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 4a5a8cf592..3c6e28527b 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -1015,6 +1015,7 @@ emae_url_set_hostport(CamelURL *url, const char *txt)
/* "" is converted to NULL, but if we set NULL on the url,
camel_url_to_string strips lots of details */
host = g_strdup((txt?txt:""));
+ camel_url_set_port (url, 0);
}
g_strstrip(host);