user-accounts: Do not set user for password dialog redundantly

um_password_dialog_set_user() is called from on_permission_changed()
respective show_user(), which more or less means on every change in
the panel. It it pretty enough to call this before opening the password
dialog, which is already done over change_password() callback. Let's
remove the redundant call which may lead to unwanted failures among
others.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/171
This commit is contained in:
Ondrej Holy 2018-08-30 16:07:36 +02:00 committed by Robert Ancell
parent 37d02369b7
commit 44c5c9e50b

View file

@ -1286,8 +1286,6 @@ on_permission_changed (GPermission *permission,
gtk_widget_set_sensitive (get_widget (self, "last-login-button"), FALSE);
add_unlock_tooltip (get_widget (self, "last-login-button"));
}
um_password_dialog_set_user (self->password_dialog, user);
}
static void