[evolution-data-server] Unable to add additional Google calendar ][



commit 96159f199f42872208c238c5560971465fbed2e3
Author: Milan Crha <mcrha redhat com>
Date:   Mon Feb 6 11:16:28 2017 +0100

    Unable to add additional Google calendar ][
    
    Fix one detail in the previous commit.

 .../e-source-credentials-provider-impl-google.c    |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libedataserver/e-source-credentials-provider-impl-google.c 
b/src/libedataserver/e-source-credentials-provider-impl-google.c
index b17efa1..c163609 100644
--- a/src/libedataserver/e-source-credentials-provider-impl-google.c
+++ b/src/libedataserver/e-source-credentials-provider-impl-google.c
@@ -402,9 +402,10 @@ e_source_credentials_google_refresh_token_sync (ESource *source,
                return FALSE;
        }
 
-       if (error && g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) {
+       /* The caller can have set an error from the secret lookup,
+          which are propagated, but otherwise a success is reported. */
+       if (error && *error)
                g_clear_error (error);
-       }
 
        if (!e_source_credentials_google_util_decode_from_secret (secret, E_GOOGLE_SECRET_REFRESH_TOKEN, 
&refresh_token, NULL) ||
            !refresh_token || !*refresh_token) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]