[gdm] Add login frequency = 1 for current sessions not already set
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Add login frequency = 1 for current sessions not already set
- Date: Fri, 11 Jun 2010 17:09:03 +0000 (UTC)
commit 14b780a6ec016b301ebe2567936f3e78e780f648
Author: William Jon McCann <jmccann redhat com>
Date: Fri Jun 11 12:30:04 2010 -0400
Add login frequency = 1 for current sessions not already set
gui/simple-greeter/gdm-user-manager.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index 857314a..f4b09d3 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -991,6 +991,13 @@ maybe_add_session (GdmUserManager *manager,
if (user != NULL) {
add_session_for_user (manager, user, session_id);
}
+
+ /* if we haven't yet gotten the login frequency
+ then at least add one because the session exists */
+ if (gdm_user_get_login_frequency (user) == 0) {
+ _gdm_user_update_login_frequency (user, 1);
+ }
+
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]