diff options
-rw-r--r-- | libempathy-gtk/empathy-account-widget.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index 9cbddd316..cf60a498a 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -2132,7 +2132,8 @@ do_constructed (GObject *obj) /* remember password */ if (priv->param_password_widget != NULL - && priv->remember_password_widget != NULL) + && priv->remember_password_widget != NULL + && empathy_account_settings_supports_sasl (priv->settings)) { if (priv->simple) { @@ -2159,6 +2160,11 @@ do_constructed (GObject *obj) remember_password_toggled_cb ( GTK_TOGGLE_BUTTON (priv->remember_password_widget), self); } + else if (priv->remember_password_widget != NULL + && !empathy_account_settings_supports_sasl (priv->settings)) + { + gtk_widget_set_visible (priv->remember_password_widget, FALSE); + } /* dup and init the account-manager */ priv->account_manager = tp_account_manager_dup (); |