aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-04-13 11:02:36 +0800
committerChris Toshok <toshok@src.gnome.org>2004-04-13 11:02:36 +0800
commit46555f409d6bca48658c4318c144909544545c3d (patch)
tree6e3c633508e3edfe48145dc181e808f2db6cae9d /addressbook/gui/widgets
parent43c722efc03e2f12f59824b95b4d09e780fbe1e1 (diff)
downloadgsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.tar
gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.tar.gz
gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.tar.bz2
gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.tar.lz
gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.tar.xz
gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.tar.zst
gsoc2013-evolution-46555f409d6bca48658c4318c144909544545c3d.zip
treat "" the same as NULL (don't add it to the list).
2004-04-12 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-popup-control.c (email_menu_add_option): treat "" the same as NULL (don't add it to the list). svn path=/trunk/; revision=25424
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/eab-popup-control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/eab-popup-control.c b/addressbook/gui/widgets/eab-popup-control.c
index 857034e840..5afddcd3af 100644
--- a/addressbook/gui/widgets/eab-popup-control.c
+++ b/addressbook/gui/widgets/eab-popup-control.c
@@ -245,7 +245,7 @@ email_menu_add_option (EMailMenu *menu, char *addr)
GtkWidget *menu_item;
g_return_if_fail (menu != NULL);
- if (addr == NULL)
+ if (!addr || !*addr)
return;
menu->options = g_list_append (menu->options, addr);