aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/pas
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/pas')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c4
1 files changed, 4 insertions, 0 deletions
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));