aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-05-01 11:14:40 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-05-01 11:14:40 +0800
commitc757cacd08d3650309783172c2dedc0d20092634 (patch)
tree659654f60496bacc8c714401e497542b01ff42de /addressbook/backend
parent56744d79e6f3ac0a370c8499e47f5b851edddfac (diff)
downloadgsoc2013-evolution-c757cacd08d3650309783172c2dedc0d20092634.tar
gsoc2013-evolution-c757cacd08d3650309783172c2dedc0d20092634.tar.gz
gsoc2013-evolution-c757cacd08d3650309783172c2dedc0d20092634.tar.bz2
gsoc2013-evolution-c757cacd08d3650309783172c2dedc0d20092634.tar.lz
gsoc2013-evolution-c757cacd08d3650309783172c2dedc0d20092634.tar.xz
gsoc2013-evolution-c757cacd08d3650309783172c2dedc0d20092634.tar.zst
gsoc2013-evolution-c757cacd08d3650309783172c2dedc0d20092634.zip
if the view does not contain a search context, the result is by default
2001-04-30 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'addressbook/backend')
-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));