[evolution-ews] Bug #658791 Don't display GAL without any query
- From: Punit Jain <jpunit src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug #658791 Don't display GAL without any query
- Date: Tue, 20 Sep 2011 10:13:48 +0000 (UTC)
commit 8a215dba0ff424bb571504983fbeab41d9d1281f
Author: Punit Jain <jpunit novell com>
Date: Tue Sep 20 15:43:14 2011 +0530
Bug #658791 Don't display GAL without any query
src/addressbook/e-book-backend-ews.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index 83f318a..ccc7e8f 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -1963,6 +1963,12 @@ fetch_from_offline (EBookBackendEws *ews, EDataBookView *book_view, const gchar
priv = ews->priv;
+ if (priv->is_gal && !g_strcmp0 (query, "(contains \"x-evolution-any-field\" \"\")")) {
+ e_data_book_view_notify_complete (book_view, error);
+ e_data_book_view_unref (book_view);
+ return;
+ }
+
contacts = e_book_backend_sqlitedb_search (priv->ebsdb, priv->folder_id, query, NULL, &error);
for (l = contacts; l != NULL; l = g_slist_next (l)) {
EbSdbSearchData *s_data = (EbSdbSearchData *) l->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]