From d448b80bd6869bc238fedf21dd62b7148da970bb Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Tue, 18 Sep 2001 02:31:05 +0000 Subject: We want to assume that a destination that comes from a card is 2001-09-17 Jon Trowbridge * backend/ebook/e-destination.c (e_destination_is_valid): We want to assume that a destination that comes from a card is automatically valid, but the right way to check that is by calling e_destination_from_card, not by checking if dest->priv->card != NULL. (Fixed bug #10017) svn path=/trunk/; revision=12930 --- addressbook/backend/ebook/e-destination.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/backend') diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index e906cd8bed..f5564f37ae 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -331,7 +331,7 @@ e_destination_is_valid (const EDestination *dest) g_return_val_if_fail (E_IS_DESTINATION (dest), FALSE); - if (dest->priv->card != NULL) + if (e_destination_from_card (dest)) return TRUE; email = e_destination_get_email (dest); -- cgit v1.2.3