[gdm/gnome-2-30] Don't jump to authenticate before users are loaded



commit afbacf9323a5564e01c86bd30739f3918da17915
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Jun 23 13:33:30 2010 -0400

    Don't jump to authenticate before users are loaded

 gui/simple-greeter/gdm-greeter-login-window.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index 0ad1fe1..0712386 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -529,7 +529,9 @@ can_jump_to_authenticate (GdmGreeterLoginWindow *login_window)
 {
         gboolean res;
 
-        if (login_window->priv->user_list_disabled) {
+        if (!login_window->priv->user_chooser_loaded) {
+                res = FALSE;
+        } else if (login_window->priv->user_list_disabled) {
                 res = (login_window->priv->timed_login_username == NULL);
         } else {
                 res = user_chooser_has_no_user (login_window);
@@ -623,7 +625,7 @@ gdm_greeter_login_window_ready (GdmGreeterLoginWindow *login_window)
         set_focus (GDM_GREETER_LOGIN_WINDOW (login_window));
 
         /* If the user list is disabled, then start the PAM conversation */
-        if (login_window->priv->user_list_disabled || user_chooser_has_no_user (login_window)) {
+        if (can_jump_to_authenticate (login_window)) {
                 g_debug ("Starting PAM conversation since user list disabled or no local users");
                 g_signal_emit (G_OBJECT (login_window), signals[USER_SELECTED],
                                0, GDM_USER_CHOOSER_USER_OTHER);



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