summaryrefslogtreecommitdiff
path: root/addressbook
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2015-02-10 19:20:53 +0100
committerMilan Crha <mcrha@redhat.com>2015-02-10 19:20:53 +0100
commit3e4d6da299332a8fd1f40ee1f3d2b82cb19aa376 (patch)
tree8ef81d4b14c301eb5b19a4d7df3e47c35f1f1951 /addressbook
parent73ae18167b62d5499ebda457bef170ba467c5d53 (diff)
downloadevolution-data-server-3e4d6da299332a8fd1f40ee1f3d2b82cb19aa376.tar.gz
Google address book backend opened read-only
The password-based Google address book was opened read-only, because of an incorrect check whether the password was accepted.
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/backends/google/e-book-backend-google.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/addressbook/backends/google/e-book-backend-google.c b/addressbook/backends/google/e-book-backend-google.c
index 7f4d29bc0..6cdf0e940 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -2357,8 +2357,7 @@ book_backend_google_authenticate_sync (EBackend *backend,
user, e_named_parameters_get (credentials, E_SOURCE_CREDENTIAL_PASSWORD), cancellable, &local_error)) {
EBookBackend *book_backend = E_BOOK_BACKEND (backend);
- if (gdata_authorizer_refresh_authorization (priv->authorizer, cancellable, &local_error) &&
- backend_is_authorized (book_backend)) {
+ if (backend_is_authorized (book_backend)) {
e_book_backend_set_writable (book_backend, TRUE);
cache_refresh_if_needed (book_backend);
}