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/em-account-editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/em-account-editor.c') 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