[evolution-data-server/gnome-3-2] [EClient] Always note backend of finished opening phase
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-2] [EClient] Always note backend of finished opening phase
- Date: Mon, 2 Jan 2012 19:00:45 +0000 (UTC)
commit 24a5ae3f9437e12d54616494ba911f039101c06c
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 2 20:00:26 2012 +0100
[EClient] Always note backend of finished opening phase
libedataserver/e-client.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libedataserver/e-client.c b/libedataserver/e-client.c
index 1d7879c..6661fb7 100644
--- a/libedataserver/e-client.c
+++ b/libedataserver/e-client.c
@@ -882,6 +882,13 @@ client_process_authentication_idle_cb (gpointer user_data)
} else {
GError *error;
+ /* Always pass credentials to backend to finish opening phase.
+ Empty username indicates that either user cancelled password prompt
+ or there was no authentication callback set.
+ */
+ e_credentials_set (auth_data->credentials, E_CREDENTIALS_KEY_USERNAME, NULL);
+ client_handle_authentication (auth_data->client, auth_data->credentials);
+
error = e_client_error_create (E_CLIENT_ERROR_AUTHENTICATION_REQUIRED, NULL);
e_client_emit_opened (auth_data->client, error);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]