summaryrefslogtreecommitdiff
path: root/src/libaccountsservice/act-user-manager.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2012-10-16 13:30:34 -0400
committerRay Strode <rstrode@redhat.com>2012-10-16 13:30:34 -0400
commit47b5049962d721ca22dfb08c7e591e376f05379f (patch)
tree42e0cac538f7ad910796f78168b888410b74f9d1 /src/libaccountsservice/act-user-manager.c
parente82517ae69d976d649580535d732df5c43237e24 (diff)
lib: fix set_has_multiple_users call in remove_uesr
The remove_user() function removes a user from the various caches and then if the cache size drops to one sets the has-multiple-users property to FALSE. Well, that's what it's supposed to do. It actually sets it to FALSE if cache size is greater than 1. This commit fixes that. Spotted by Florian Müllner
Diffstat (limited to 'src/libaccountsservice/act-user-manager.c')
-rw-r--r--src/libaccountsservice/act-user-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libaccountsservice/act-user-manager.c b/src/libaccountsservice/act-user-manager.c
index 43667b3..431b1f8 100644
--- a/src/libaccountsservice/act-user-manager.c
+++ b/src/libaccountsservice/act-user-manager.c
@@ -756,7 +756,7 @@ remove_user (ActUserManager *manager,
g_object_unref (user);
- if (g_hash_table_size (manager->priv->normal_users_by_name) > 1) {
+ if (g_hash_table_size (manager->priv->normal_users_by_name) <= 1) {
set_has_multiple_users (manager, FALSE);
}
}