aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-07-25 16:31:02 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-07-25 16:31:02 +0800
commitb7c8e687b0bb1b94905b1a03d5a578736e226030 (patch)
tree3a60279c61df4a8495ffef1549b40048437e033e /addressbook/gui
parentb2470f6dd18cf7a5b1248ae0a10157d325f9205a (diff)
downloadgsoc2013-evolution-b7c8e687b0bb1b94905b1a03d5a578736e226030.tar
gsoc2013-evolution-b7c8e687b0bb1b94905b1a03d5a578736e226030.tar.gz
gsoc2013-evolution-b7c8e687b0bb1b94905b1a03d5a578736e226030.tar.bz2
gsoc2013-evolution-b7c8e687b0bb1b94905b1a03d5a578736e226030.tar.lz
gsoc2013-evolution-b7c8e687b0bb1b94905b1a03d5a578736e226030.tar.xz
gsoc2013-evolution-b7c8e687b0bb1b94905b1a03d5a578736e226030.tar.zst
gsoc2013-evolution-b7c8e687b0bb1b94905b1a03d5a578736e226030.zip
Properly dup the results of e_destination_get_email.
2001-07-25 Jon Trowbridge <trow@ximian.com> * backend/ebook/e-destination.c (e_destination_get_name): Properly dup the results of e_destination_get_email. * gui/component/select-names/e-select-names-popup.c (e_select_names_popup): Check that our destination isn't empty before building our popup. (Bug #5250) * backend/ebook/e-destination.c (e_destination_is_empty): Made argument const. svn path=/trunk/; revision=11395
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-popup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-popup.c b/addressbook/gui/component/select-names/e-select-names-popup.c
index aa668884c2..c4cb57533d 100644
--- a/addressbook/gui/component/select-names/e-select-names-popup.c
+++ b/addressbook/gui/component/select-names/e-select-names-popup.c
@@ -323,6 +323,8 @@ popup_menu_nocard (PopupInfo *info)
memset (uiinfo, 0, sizeof (uiinfo));
str = e_destination_get_name (info->dest);
+ if (str == NULL)
+ str = _("Unnamed Contact");
uiinfo[i].type = GNOME_APP_UI_ITEM;
uiinfo[i].label = (gchar *) str;
@@ -373,6 +375,9 @@ e_select_names_popup (ESelectNamesModel *model, GdkEventButton *ev, gint pos)
return;
dest = e_select_names_model_get_destination (model, index);
+ if (e_destination_is_empty (dest))
+ return;
+
card = e_destination_get_card (dest);
info = popup_info_new (model, dest, pos, index);