[gnome-control-center/T20818: 35/54] user-accounts: Show the correct password mode when changing it



commit 246672e6030e31b218cb239190b002b16e22ce41
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.
    
    https://phabricator.endlessm.com/T17270

 panels/user-accounts/um-password-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-password-dialog.c b/panels/user-accounts/um-password-dialog.c
index ad2e33f..dcddc48 100644
--- a/panels/user-accounts/um-password-dialog.c
+++ b/panels/user-accounts/um-password-dialog.c
@@ -618,7 +618,7 @@ um_password_dialog_set_user (UmPasswordDialog *um,
                         um->old_password_ok = !visible;
                 }
                 else {
-                        mode_change (um, ACT_USER_PASSWORD_MODE_SET_AT_LOGIN);
+                        mode_change (um, act_user_get_password_mode (user));
                         gtk_widget_show (um->action_radio_box);
 
                         gtk_widget_hide (um->old_password_label);


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