diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-02-22 01:39:29 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-02-22 01:39:29 +0800 |
commit | 34aaf812b1b4a5c2401c5f832c5094a05033a3e4 (patch) | |
tree | e7235d13fbdb551582869582303212d78e14b5fc /addressbook/backend/pas | |
parent | 8738bf7afffc7d2696d6e422e08583d3207ef837 (diff) | |
download | gsoc2013-evolution-34aaf812b1b4a5c2401c5f832c5094a05033a3e4.tar.gz gsoc2013-evolution-34aaf812b1b4a5c2401c5f832c5094a05033a3e4.tar.zst gsoc2013-evolution-34aaf812b1b4a5c2401c5f832c5094a05033a3e4.zip |
Made this pay attention to the return value of e_sexp_parse.
2001-02-21 Christopher James Lahey <clahey@ximian.com>
* backend/pas/pas-backend-file.c (pas_backend_file_search): Made
this pay attention to the return value of e_sexp_parse.
* gui/component/select-names/e-select-names-text-model.c
(e_select_names_text_model_activate_obj): Fixed a const
inconsistency here.
svn path=/trunk/; revision=8321
Diffstat (limited to 'addressbook/backend/pas')
-rw-r--r-- | addressbook/backend/pas/pas-backend-file.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index e46bbd3976..970dbac105 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -478,6 +478,7 @@ pas_backend_file_search (PASBackendFile *bf, DB *db = bf->priv->file_db; DBT id_dbt, vcard_dbt; int i; + int esexp_error; PASBackendFileBookView *view = (PASBackendFileBookView *)cnstview; if (!bf->priv->loaded) @@ -498,7 +499,12 @@ pas_backend_file_search (PASBackendFile *bf, } e_sexp_input_text(view->search_sexp, view->search, strlen(view->search)); - e_sexp_parse(view->search_sexp); + esexp_error = e_sexp_parse(view->search_sexp); + + if (esexp_error == -1) { + pas_book_view_notify_complete (view->book_view); + return; + } db_error = db->seq(db, &id_dbt, &vcard_dbt, R_FIRST); @@ -521,10 +527,9 @@ pas_backend_file_search (PASBackendFile *bf, if (db_error == -1) { g_warning ("pas_backend_file_search: error building list\n"); } - else { - pas_book_view_notify_add (view->book_view, cards); - pas_book_view_notify_complete (view->book_view); - } + + pas_book_view_notify_add (view->book_view, cards); + pas_book_view_notify_complete (view->book_view); /* ** It's fine to do this now since the data has been handed off. |