From 7b3f66098f65545d80276b7b98dd25856fa362fe Mon Sep 17 00:00:00 2001 From: Sankar P Date: Wed, 28 Sep 2005 08:20:41 +0000 Subject: Added code to handle the extra blank email that will be returned from the 2005-09-28 Sankar P * proxy.c (proxy_dialog_store_widgets_data): Added code to handle the extra blank email that will be returned from the ENameSelector, while auto-completion. Fixes #317400 svn path=/trunk/; revision=30384 --- plugins/groupwise-features/proxy.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/groupwise-features/proxy.c') diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index 6e14c6ab98..e3d68ab608 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -347,7 +347,10 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog) email = NULL; email = (char *)e_destination_get_email (tmp->data); - if (g_strrstr (email, "@") == NULL ) { + if (g_str_equal(email, "")) + continue; + + if (g_strrstr (email, "@") == NULL) { e_error_run (NULL, "org.gnome.evolution.proxy:invalid-user", email, NULL); return -1; } @@ -382,6 +385,10 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog) for (; tmp != NULL; tmp = g_list_next (tmp)) { name = NULL; email = NULL; email = (char *) e_destination_get_email (tmp->data); + + if (g_str_equal(email, "")) + continue; + name = (char *) e_destination_get_name (tmp->data); new_proxy = (proxyHandler *) g_malloc (sizeof (proxyHandler)); -- cgit v1.2.3