aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/service.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/service.c b/src/service.c
index a153306..b3b0641 100644
--- a/src/service.c
+++ b/src/service.c
@@ -250,15 +250,15 @@ on_user_changed (IndicatorSessionUsers * backend_users G_GNUC_UNUSED,
static void
maybe_add_users (IndicatorSessionService * self)
{
- if (!show_user_list (self))
- return;
-
- GList * uids, * l;
+ if (show_user_list (self))
+ {
+ GList * uids, * l;
- uids = indicator_session_users_get_uids (self->priv->backend_users);
- for (l=uids; l!=NULL; l=l->next)
- add_user (self, GPOINTER_TO_UINT(l->data));
- g_list_free (uids);
+ uids = indicator_session_users_get_uids (self->priv->backend_users);
+ for (l=uids; l!=NULL; l=l->next)
+ add_user (self, GPOINTER_TO_UINT(l->data));
+ g_list_free (uids);
+ }
}