aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/pas/pas-backend-file.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 78a94b1ec6..bae7938514 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -19,6 +19,12 @@
need it at some point in the future.
(ldap_search_handler): pass in the PASBackendLDAP.
+2002-02-26 Chris Toshok <toshok@ximian.com>
+
+ * backend/pas/pas-backend-file.c (pas_backend_file_search): move
+ card_count++ inside the if that checks to see if a card matches
+ (and adds the card to the list).
+
2002-02-24 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook.c (addressbook_query_changed): only
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index 7d6499578d..057012ddaa 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -296,10 +296,9 @@ pas_backend_file_search (PASBackendFile *bf,
/* check if the vcard matches the search sexp */
if ((!search_needed) || vcard_matches_search (view, vcard_string)) {
cards = g_list_prepend (cards, g_strdup (vcard_string));
+ card_count ++;
}
- card_count ++;
-
/* If we've accumulated a number of checks, pass them off to the client. */
if (card_count >= card_threshold) {
cards = g_list_reverse (cards);