diff options
author | Chris Toshok <toshok@ximian.com> | 2002-10-22 05:15:46 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-10-22 05:15:46 +0800 |
commit | b10ce5577d3939b895e270181ebe569e8addc58e (patch) | |
tree | 2f45536a09d74e23967e74a3331d148eb2d4054b | |
parent | 0aba4b1126e519fb27f9546d3e04480f402ae927 (diff) | |
download | gsoc2013-evolution-b10ce5577d3939b895e270181ebe569e8addc58e.tar.gz gsoc2013-evolution-b10ce5577d3939b895e270181ebe569e8addc58e.tar.zst gsoc2013-evolution-b10ce5577d3939b895e270181ebe569e8addc58e.zip |
[ fixes #29067 ] we need to create a card_sexp even when doing summary
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.
svn path=/trunk/; revision=18404
-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); |