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



commit e3622e19ab8b4308be54c2d15bc3fbf304427d5f
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 138bde3..b545535 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]