[epiphany/wip/sync: 45/86] prefs-dialog: Reset the sync user email in case of tokens store error



commit 45f70e3a3d2e50cf941fd9a01ae0e90613d266a8
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Tue Mar 7 16:54:57 2017 +0200

    prefs-dialog: Reset the sync user email in case of tokens store error

 src/prefs-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 003af7d..a7054a5 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -231,6 +231,7 @@ sync_tokens_store_finished_cb (EphySyncService *service,
 
     /* Unset the email and tokens. */
     g_settings_set_string (EPHY_SETTINGS_MAIN, EPHY_PREFS_SYNC_USER, "");
+    ephy_sync_service_set_user_email (service, NULL);
     ephy_sync_service_clear_tokens (service);
 
     /* Display the error message to the user. */


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