aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
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