From c757cacd08d3650309783172c2dedc0d20092634 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 1 May 2001 03:14:40 +0000 Subject: if the view does not contain a search context, the result is by default 2001-04-30 JP Rosevear * backend/pas/pas-backend-file.c (vcard_matches_search): if the view does not contain a search context, the result is by default false fixes #2470 svn path=/trunk/; revision=9634 --- addressbook/ChangeLog | 6 ++++++ addressbook/backend/pas/pas-backend-file.c | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 04f3ac9421..c48b3a41c6 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-04-30 JP Rosevear + + * backend/pas/pas-backend-file.c (vcard_matches_search): if the + view does not contain a search context, the result is by default + false fixes #2470 + 2001-04-25 Dan Winship * gui/component/addressbook-factory.c (main): Remove call to diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index ec7bdfcd7f..b681be8f25 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -443,6 +443,10 @@ vcard_matches_search (const PASBackendFileBookView *view, char *vcard_string) gboolean retval; ECard *card; + /* If this is not a search context view, it doesn't match be default */ + if (view->search_context == NULL) + return FALSE; + card = e_card_new (vcard_string); view->search_context->card = e_card_simple_new (card); gtk_object_unref(GTK_OBJECT(card)); -- cgit v1.2.3