diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-07 20:25:57 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-07 20:25:57 +0800 |
commit | 0c4079edb20dc99d17dc8e2b212f3fca7841357b (patch) | |
tree | d57f2c5dbf7367af05786bd498ba55728013fe32 /libempathy | |
parent | 689c34ab5fec2ad965e934a532b6fca4008c06ef (diff) | |
download | gsoc2013-empathy-0c4079edb20dc99d17dc8e2b212f3fca7841357b.tar gsoc2013-empathy-0c4079edb20dc99d17dc8e2b212f3fca7841357b.tar.gz gsoc2013-empathy-0c4079edb20dc99d17dc8e2b212f3fca7841357b.tar.bz2 gsoc2013-empathy-0c4079edb20dc99d17dc8e2b212f3fca7841357b.tar.lz gsoc2013-empathy-0c4079edb20dc99d17dc8e2b212f3fca7841357b.tar.xz gsoc2013-empathy-0c4079edb20dc99d17dc8e2b212f3fca7841357b.tar.zst gsoc2013-empathy-0c4079edb20dc99d17dc8e2b212f3fca7841357b.zip |
account-settings: always save the password into the password storage
This ensures that the password is stored with the proper 'remember' value.
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-account-settings.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index ee0cb3460..9c25faf01 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -81,7 +81,6 @@ struct _EmpathyAccountSettingsPriv gboolean ready; gboolean supports_sasl; - gboolean password_changed; gboolean remember_password; gchar *password; @@ -833,7 +832,6 @@ empathy_account_settings_unset (EmpathyAccountSettings *settings, { g_free (priv->password); priv->password = NULL; - priv->password_changed = TRUE; return; } @@ -851,7 +849,6 @@ empathy_account_settings_discard_changes (EmpathyAccountSettings *settings) g_hash_table_remove_all (priv->parameters); empathy_account_settings_free_unset_parameters (settings); - priv->password_changed = FALSE; g_free (priv->password); priv->password = g_strdup (priv->password_original); @@ -1073,7 +1070,6 @@ empathy_account_settings_set (EmpathyAccountSettings *settings, { g_free (priv->password); priv->password = g_variant_dup_string (v, NULL); - priv->password_changed = TRUE; } else { @@ -1336,9 +1332,8 @@ empathy_account_settings_account_updated (GObject *source, goto out; } - /* Only set the password in the keyring if the CM supports SASL and - * it's changed. */ - if (priv->supports_sasl && priv->password_changed) + /* Only set the password in the keyring if the CM supports SASL. */ + if (priv->supports_sasl) { if (priv->password != NULL) { |