[gnome-control-center] user-accounts: Remove autologin when an account is deleted



commit 1be1b5c1bffa753f124df68cf2c9b5a90affac39
Author: Jean-Benoit MARTIN <jean-benoit martin eurogiciel fr>
Date:   Wed Apr 24 09:23:10 2013 +0200

    user-accounts: Remove autologin when an account is deleted
    
    Check if autologin is enabled when an account is deleted and remove
    autologin for that user.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698663

 panels/user-accounts/um-user-panel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index de2ae56..d29b359 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -437,6 +437,11 @@ delete_user_response (GtkWidget         *dialog,
 
         user = get_selected_user (d);
 
+        /* remove autologin */
+        if (act_user_get_automatic_login (user)) {
+                act_user_set_automatic_login (user, FALSE);
+        }
+
         act_user_manager_delete_user_async (d->um,
                                             user,
                                             remove_files,


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