[gnome-control-center/mwleeds/allow-empty-password: 3/4] user-accounts: Show the correct password mode when changing it




commit d34d14a722c78c0fc50c088b959d08a27fce1591
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Fri Jun 9 17:44:27 2017 +0200

    user-accounts: Show the correct password mode when changing it
    
    When changing the password for a user, instead of always showing the
    first option available ("allow a user to set the password at login") we
    should show the mode that is currently set. Besides the obvious
    consistency, this avoids e.g. mistakenly change the password mode to
    that first option.

 panels/user-accounts/cc-password-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/user-accounts/cc-password-dialog.c b/panels/user-accounts/cc-password-dialog.c
index 0212e121c..c170e118c 100644
--- a/panels/user-accounts/cc-password-dialog.c
+++ b/panels/user-accounts/cc-password-dialog.c
@@ -555,7 +555,7 @@ cc_password_dialog_new (ActUser *user)
                 self->passwd_handler = passwd_init ();
         }
         else {
-                mode_change (self, ACT_USER_PASSWORD_MODE_SET_AT_LOGIN);
+                mode_change (self, act_user_get_password_mode (user));
                 gtk_widget_show (GTK_WIDGET (self->action_radio_box));
 
                 gtk_widget_hide (GTK_WIDGET (self->old_password_label));


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