aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2002-03-01 04:24:44 +0800
committerChris Toshok <toshok@src.gnome.org>2002-03-01 04:24:44 +0800
commitc09b6f1f2bb87fe2a3227a4a0656c3e892f6adcb (patch)
tree62bdc54b559bcebc99f3e6f0fd9f5e8f34d3ddbb /addressbook/backend
parent2d731c96fcbb5b628f14659283217973a988b846 (diff)
downloadgsoc2013-evolution-c09b6f1f2bb87fe2a3227a4a0656c3e892f6adcb.tar
gsoc2013-evolution-c09b6f1f2bb87fe2a3227a4a0656c3e892f6adcb.tar.gz
gsoc2013-evolution-c09b6f1f2bb87fe2a3227a4a0656c3e892f6adcb.tar.bz2
gsoc2013-evolution-c09b6f1f2bb87fe2a3227a4a0656c3e892f6adcb.tar.lz
gsoc2013-evolution-c09b6f1f2bb87fe2a3227a4a0656c3e892f6adcb.tar.xz
gsoc2013-evolution-c09b6f1f2bb87fe2a3227a4a0656c3e892f6adcb.tar.zst
gsoc2013-evolution-c09b6f1f2bb87fe2a3227a4a0656c3e892f6adcb.zip
i2002-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). svn path=/trunk/; revision=15872
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c3
1 files changed, 1 insertions, 2 deletions
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);