diff options
author | Not Zed <NotZed@Ximian.com> | 2005-01-12 21:35:25 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2005-01-12 21:35:25 +0800 |
commit | 2d7c911e65d64ec0dfd19d7cdd598f68deea54ef (patch) | |
tree | 73990742f93cc63da544ded0674213dbe32ed0f0 /mail/em-account-editor.c | |
parent | d5b2771b47f190bdf606a48baff9783c8bddf84e (diff) | |
download | gsoc2013-evolution-2d7c911e65d64ec0dfd19d7cdd598f68deea54ef.tar.gz gsoc2013-evolution-2d7c911e65d64ec0dfd19d7cdd598f68deea54ef.tar.zst gsoc2013-evolution-2d7c911e65d64ec0dfd19d7cdd598f68deea54ef.zip |
** See bug #70990.
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
svn path=/trunk/; revision=28377
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r-- | mail/em-account-editor.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |