aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-11-10 20:48:39 +0800
committerMilan Crha <mcrha@redhat.com>2011-11-10 20:48:39 +0800
commitabd53549d2c27f4311186ae56962be092829355c (patch)
tree8c760a60754f773d93ac02ce75116a2e9e74d094 /modules
parentf9fee6a584746edf859119142b2f1ec31f5a1198 (diff)
downloadgsoc2013-evolution-abd53549d2c27f4311186ae56962be092829355c.tar.gz
gsoc2013-evolution-abd53549d2c27f4311186ae56962be092829355c.tar.zst
gsoc2013-evolution-abd53549d2c27f4311186ae56962be092829355c.zip
Bug #663748 - Unable to reconfigure GOA GMail account
Diffstat (limited to 'modules')
-rw-r--r--modules/online-accounts/e-online-accounts-google.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/online-accounts/e-online-accounts-google.c b/modules/online-accounts/e-online-accounts-google.c
index 666c407511..424cec24bd 100644
--- a/modules/online-accounts/e-online-accounts-google.c
+++ b/modules/online-accounts/e-online-accounts-google.c
@@ -139,6 +139,15 @@ online_accounts_google_sync_mail (GoaObject *goa_object,
const gchar *string;
gboolean new_account = FALSE;
+ account_list = e_get_account_list ();
+ account = e_get_account_by_uid (evo_id);
+
+ if (account) {
+ /* the account is already configured,
+ do not change user's changes */
+ return;
+ }
+
/* XXX There's nothing particularly GMail-specific about this.
* Maybe break this off into a more generic IMAP/SMTP sync
* function and then apply any GMail-specific tweaks. */
@@ -146,9 +155,6 @@ online_accounts_google_sync_mail (GoaObject *goa_object,
goa_mail = goa_object_get_mail (goa_object);
goa_account = goa_object_get_account (goa_object);
- account_list = e_get_account_list ();
- account = e_get_account_by_uid (evo_id);
-
if (account == NULL) {
account = g_object_new (E_TYPE_ACCOUNT, NULL);
account->uid = g_strdup (evo_id);