From 00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Mon, 2 Jul 2001 04:23:15 +0000 Subject: Fix for the "recipient not specified" bug --- we were not correctly 2001-07-01 Jon Trowbridge * 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 --- addressbook/backend/ebook/e-destination.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'addressbook/backend') 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 -- cgit v1.2.3