aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-07-02 12:23:15 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-07-02 12:23:15 +0800
commit00e3b9af8a4c5d661b1cd1cecc6811cbf374f3dd (patch)
treecfb747693083b7e9591757320a76678e5469607b /addressbook/backend
parent120ab4c15351357bfffd8a34a1f3fe873ceab9f6 (diff)
downloadgsoc2013-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/backend')
-rw-r--r--addressbook/backend/ebook/e-destination.c8
1 files changed, 7 insertions, 1 deletions
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