diff options
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-file.c | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 98b7f657aa..5fcf8060dd 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,12 @@ 2002-10-20 Chris Toshok <toshok@ximian.com> + [ fixes #29067 ] + * backend/pas/pas-backend-file.c (pas_backend_file_search): we + need to create a card_sexp even when doing summary queries since + it's used to check modifications of cards in the view. + +2002-10-20 Chris Toshok <toshok@ximian.com> + [ fixes #32144 ] * gui/contact-editor/e-contact-save-as.c (e_contact_save_as): convert the name to the gtk locale before saving. 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); |