diff options
| author | David Bremner <david@tethera.net> | 2015-06-07 17:01:57 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-09-04 08:06:08 -0300 |
| commit | f16944c3b40be414aac85762e2f075a9d1239736 (patch) | |
| tree | a24499b8374e7ef9954079d03723ada1b6971084 | |
| parent | 005c2f0df17de8afdf9f67b923d26f2358236171 (diff) | |
lib: remove use of notmuch_query_search_messages from query.cc
There is not too much point in worrying about the bad error reporting
here, because the count api is due for the same deprecation.
| -rw-r--r-- | lib/query.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/query.cc b/lib/query.cc index 5275b5a2..f53215db 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -618,10 +618,14 @@ notmuch_query_count_threads (notmuch_query_t *query) GHashTable *hash; unsigned int count; notmuch_sort_t sort; + notmuch_status_t status; sort = query->sort; query->sort = NOTMUCH_SORT_UNSORTED; - messages = notmuch_query_search_messages (query); + status = notmuch_query_search_messages_st (query, &messages); + if (status) + return 0; + query->sort = sort; if (messages == NULL) return 0; |
