[gnome-online-accounts] oauth2: Propagate the error if the dialog is dismissed during refresh



commit 5e02fd5ee1598f2bd81f689d4b8a5c92d9dc8c40
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Sep 27 15:06:47 2013 +0200

    oauth2: Propagate the error if the dialog is dismissed during refresh
    
    Fallout from a6ce50a8ab89242d7d25611c3828033e854a263d
    
    Fixes: https://bugzilla.gnome.org/708832

 src/goabackend/goaoauth2provider.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaoauth2provider.c b/src/goabackend/goaoauth2provider.c
index 906a500..132f66c 100644
--- a/src/goabackend/goaoauth2provider.c
+++ b/src/goabackend/goaoauth2provider.c
@@ -1405,6 +1405,9 @@ goa_oauth2_provider_refresh_account (GoaProvider  *_provider,
   ret = TRUE;
 
  out:
+  if (priv->error != NULL)
+    g_propagate_error (error, priv->error);
+
   gtk_widget_destroy (dialog);
   return ret;
 }


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