diff options
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-client-utils.c | 7 | ||||
-rw-r--r-- | e-util/e-contact-store.c | 14 |
2 files changed, 5 insertions, 16 deletions
diff --git a/e-util/e-client-utils.c b/e-util/e-client-utils.c index 04efbe8177..167c1afcf5 100644 --- a/e-util/e-client-utils.c +++ b/e-util/e-client-utils.c @@ -312,12 +312,7 @@ client_utils_open_new_async_cb (GObject *source_object, return; } - if (e_client_is_opened (async_data->client)) { - client_utils_open_new_done (async_data); - return; - } - - /* wait for 'opened' signal, which is received in client_utils_opened_cb */ + client_utils_open_new_done (async_data); } /** 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); } /* ----------------- * |