aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/ebook/e-destination.c8
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