[gdm] manager: fix timed login



commit 9f7a617876fcd3cd0a88001667ad13d835fef5a6
Author: Ray Strode <rstrode redhat com>
Date:   Fri Mar 21 12:54:41 2014 -0400

    manager: fix timed login
    
    There was some confusion over multiple competing enabled variables.
    
    This commit eliminates the confusion.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680348

 daemon/gdm-manager.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 23f274a..c5e46b6 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1610,7 +1610,6 @@ on_session_client_connected (GdmSession      *session,
                              GdmManager      *manager)
 {
         GdmDisplay *display;
-        gboolean timed_login_enabled;
         char    *username;
         int      delay;
         gboolean enabled, display_is_local;
@@ -1625,10 +1624,10 @@ on_session_client_connected (GdmSession      *session,
 
         g_object_get (display, "is-local", &display_is_local, NULL);
 
-        timed_login_enabled = FALSE;
+        enabled = FALSE;
         gdm_display_get_timed_login_details (display, &enabled, &username, &delay, NULL);
 
-        if (! timed_login_enabled) {
+        if (! enabled) {
                 return;
         }
 


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