summaryrefslogtreecommitdiff
path: root/src/libaccountsservice/act-user.c
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2012-02-29 22:14:53 +0100
committerRay Strode <rstrode@redhat.com>2012-03-15 19:40:19 -0400
commit1542f2456a44587927289899246e76bef81f9b36 (patch)
treed130daa7461b03ba946b3ab41b8f0154c39de6ef /src/libaccountsservice/act-user.c
parent6e0d982972532423a435952b526822cb8ce28289 (diff)
ActUser: set loaded status even if an error occurs
Not doing so confuses the UserManager, which still considers the user pending and blocks the emission of user-added/user-removed signals. https://bugs.freedesktop.org/show_bug.cgi?id=46794
Diffstat (limited to 'src/libaccountsservice/act-user.c')
-rw-r--r--src/libaccountsservice/act-user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libaccountsservice/act-user.c b/src/libaccountsservice/act-user.c
index c47efe7..e005b91 100644
--- a/src/libaccountsservice/act-user.c
+++ b/src/libaccountsservice/act-user.c
@@ -1079,6 +1079,10 @@ on_get_all_finished (GObject *object,
g_debug ("Error calling GetAll() when retrieving properties for %s: %s",
user->object_path, error->message);
g_error_free (error);
+
+ if (!user->is_loaded) {
+ set_is_loaded (user, TRUE);
+ }
return;
}