From 2d7c911e65d64ec0dfd19d7cdd598f68deea54ef Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 12 Jan 2005 13:35:25 +0000 Subject: ** See bug #70990. 2005-01-12 Not Zed ** See bug #70990. * em-account-editor.c (emae_service_url_changed): if the value is "" then don't set it svn path=/trunk/; revision=28377 --- mail/ChangeLog | 5 +++++ mail/em-account-editor.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'mail') 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 + ** 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); } -- cgit v1.2.3