diff options
author | Ray Strode <rstrode@redhat.com> | 2014-03-21 12:54:41 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2014-03-24 09:19:42 -0400 |
commit | 9f7a617876fcd3cd0a88001667ad13d835fef5a6 (patch) | |
tree | 54b45376c65abfd0f6b8f71299ca75f8c8623604 | |
parent | 33b0cac2296e86ef066fb0ce10c742470a9ba0d0 (diff) | |
download | gdm-9f7a617876fcd3cd0a88001667ad13d835fef5a6.tar.gz |
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
-rw-r--r-- | 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 23f274a2..c5e46b6c 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; } |