diff options
Diffstat (limited to 'e-util/e-contact-store.c')
-rw-r--r-- | e-util/e-contact-store.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/e-util/e-contact-store.c b/e-util/e-contact-store.c index 4e49399e82..acfbe71e79 100644 --- a/e-util/e-contact-store.c +++ b/e-util/e-contact-store.c @@ -881,7 +881,7 @@ static void query_contact_source (EContactStore *contact_store, ContactSource *source) { - gboolean is_opened; + gchar *query_str; g_assert (source->book_client != NULL); @@ -890,8 +890,6 @@ query_contact_source (EContactStore *contact_store, return; } - is_opened = e_client_is_opened (E_CLIENT (source->book_client)); - if (source->client_view) { if (source->client_view_pending) { stop_view (contact_store, source->client_view_pending); @@ -902,13 +900,9 @@ query_contact_source (EContactStore *contact_store, } } - if (is_opened) { - gchar *query_str; - - query_str = e_book_query_to_string (contact_store->priv->query); - e_book_client_get_view (source->book_client, query_str, NULL, client_view_ready_cb, g_object_ref (contact_store)); - g_free (query_str); - } + query_str = e_book_query_to_string (contact_store->priv->query); + e_book_client_get_view (source->book_client, query_str, NULL, client_view_ready_cb, g_object_ref (contact_store)); + g_free (query_str); } /* ----------------- * |