diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-07-02 12:23:15 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-07-02 12:23:15 +0800 |
commit | 00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd (patch) | |
tree | cfb747693083b7e9591757320a76678e5469607b /addressbook | |
parent | 120ab4c15351357bfffd8a34a1f3fe873ceab9f6 (diff) | |
download | gsoc2013-evolution-00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd.tar gsoc2013-evolution-00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd.tar.gz gsoc2013-evolution-00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd.tar.bz2 gsoc2013-evolution-00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd.tar.lz gsoc2013-evolution-00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd.tar.xz gsoc2013-evolution-00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd.tar.zst gsoc2013-evolution-00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd.zip |
Fix for the "recipient not specified" bug --- we were not correctly
2001-07-01 Jon Trowbridge <trow@ximian.com>
* backend/ebook/e-destination.c (e_destination_is_empty): Fix for the
"recipient not specified" bug --- we were not correctly checking
for whether or not an EDestination was actually empty.
svn path=/trunk/; revision=10664
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-destination.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index ef1843a2c2..de74fffbb0 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-07-01 Jon Trowbridge <trow@ximian.com> + + * backend/ebook/e-destination.c (e_destination_is_empty): Fix for the + "recipient not specified" bug --- we were not correctly checking + for whether or not an EDestination was actually empty. + 2001-06-30 Jon Trowbridge <trow@ximian.com> * backend/ebook/e-card.c (e_card_evolution_list): Check args. diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index 67044484ae..882453be0e 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -142,9 +142,15 @@ e_destination_copy (EDestination *dest) gboolean e_destination_is_empty (EDestination *dest) { + struct _EDestinationPrivate *p; g_return_val_if_fail (dest && E_IS_DESTINATION (dest), TRUE); + p = dest->priv; - return !(dest->priv->card || dest->priv->pending_card_id || (dest->priv->string && *dest->priv->string)); + return !(p->card + || p->pending_card_id + || (p->string && *p->string) + || (p->name && *p->name) + || (p->string_email && *p->string_email)); } static void |