diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/em-account-editor.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 309799a36d..8b8f4f8feb 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,10 @@ 2005-01-12 Not Zed <NotZed@Ximian.com> + ** See bug #70990. + + * em-account-editor.c (emae_service_url_changed): if the value is + "" then don't set it + ** See bug #70018. * mail-signature-editor.c (mail_signature_editor): use the right diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 4d702963b6..508a4ee5a7 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -1037,8 +1037,9 @@ static void emae_service_url_changed(EMAccountEditorService *service, void (*setval)(CamelURL *, const char *), GtkEntry *entry) { CamelURL *url = emae_account_url(service->emae, emae_service_info[service->type].account_uri_key); + const char *text = gtk_entry_get_text(entry); - setval(url, gtk_entry_get_text(entry)); + setval(url, (text && text[0])?text:NULL); emae_uri_changed(service, url); camel_url_free(url); } |