aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c3
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);
}