]> git.0d.be Git - empathy.git/commitdiff
UOA: Changing enable state of MC account should not modify per-service state
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 22 Aug 2012 13:02:12 +0000 (15:02 +0200)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Wed, 22 Aug 2012 14:55:45 +0000 (16:55 +0200)
ag_account_set_enabled() is not global enable state, we have to ensure that
selected service is NULL before that.

ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c

index 20b8f094985632498f435d6b0c5073fa64a129d5..c0ff400f664b886a0b6bde783c2d3dd1f07d9068 100644 (file)
@@ -542,6 +542,9 @@ account_manager_uoa_set (const McpAccountStorage *storage,
 
   if (!tp_strdiff (key, "Enabled"))
     {
+      /* Enabled is a global setting on the account, not per-services,
+       * unfortunately */
+      ag_account_select_service (account, NULL);
       ag_account_set_enabled (account, !tp_strdiff (val, "true"));
     }
   else if (!tp_strdiff (key, "DisplayName"))