aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index 29e6ab59b4..492637f99e 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -370,6 +370,13 @@ pas_backend_file_search (PASBackendFile *bf,
view->card_sexp = NULL;
}
+ view->card_sexp = pas_backend_card_sexp_new (view->search);
+
+ if (!view->card_sexp) {
+ pas_book_view_notify_complete (view->book_view, GNOME_Evolution_Addressbook_BookViewListener_InvalidQuery);
+ return;
+ }
+
if (pas_backend_summary_is_summary_query (bf->priv->summary, view->search)) {
do_summary_query (bf, view, completion_search);
}
@@ -382,13 +389,6 @@ pas_backend_file_search (PASBackendFile *bf,
DBT id_dbt, vcard_dbt;
int file_version_name_len;
- view->card_sexp = pas_backend_card_sexp_new (view->search);
-
- if (!view->card_sexp) {
- pas_book_view_notify_complete (view->book_view, GNOME_Evolution_Addressbook_BookViewListener_InvalidQuery);
- return;
- }
-
file_version_name_len = strlen (PAS_BACKEND_FILE_VERSION_NAME);
db_error = db->cursor (db, NULL, &dbc, 0);