diff options
author | Sankar P <psankar@novell.com> | 2005-09-28 16:20:41 +0800 |
---|---|---|
committer | Sankarasivasubramanian Pasupathilingam <psankar@src.gnome.org> | 2005-09-28 16:20:41 +0800 |
commit | 7b3f66098f65545d80276b7b98dd25856fa362fe (patch) | |
tree | 09556f1b878176002a38ca0e370f9f991e234b1a /plugins | |
parent | 881b7938b5080a058fd02d003a4cdead5bb8877b (diff) | |
download | gsoc2013-evolution-7b3f66098f65545d80276b7b98dd25856fa362fe.tar gsoc2013-evolution-7b3f66098f65545d80276b7b98dd25856fa362fe.tar.gz gsoc2013-evolution-7b3f66098f65545d80276b7b98dd25856fa362fe.tar.bz2 gsoc2013-evolution-7b3f66098f65545d80276b7b98dd25856fa362fe.tar.lz gsoc2013-evolution-7b3f66098f65545d80276b7b98dd25856fa362fe.tar.xz gsoc2013-evolution-7b3f66098f65545d80276b7b98dd25856fa362fe.tar.zst gsoc2013-evolution-7b3f66098f65545d80276b7b98dd25856fa362fe.zip |
Added code to handle the extra blank email that will be returned from the
2005-09-28 Sankar P <psankar@novell.com>
* 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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/groupwise-features/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/groupwise-features/proxy.c | 9 |
2 files changed, 15 insertions, 1 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog index 3e60bc74e3..da6d28bd9a 100644 --- a/plugins/groupwise-features/ChangeLog +++ b/plugins/groupwise-features/ChangeLog @@ -1,3 +1,10 @@ +2005-09-28 Sankar P <psankar@novell.com> + + * 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 + 2005-09-27 Vivek Jain <jvivek@novell.com> * install-shared.c: (accept_clicked): 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)); |