diff options
-rw-r--r-- | libempathy-gtk/empathy-roster-view.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c index a5d145943..d1e1c7891 100644 --- a/libempathy-gtk/empathy-roster-view.c +++ b/libempathy-gtk/empathy-roster-view.c @@ -907,6 +907,7 @@ filter_group (EmpathyRosterView *self, EmpathyRosterGroup *group) { GList *widgets, *l; + gboolean result = FALSE; /* Display the group if it contains at least one displayed contact */ widgets = empathy_roster_group_get_widgets (group); @@ -915,10 +916,15 @@ filter_group (EmpathyRosterView *self, EmpathyRosterContact *contact = l->data; if (contact_should_be_displayed (self, contact)) - return TRUE; + { + result = TRUE; + break; + } } - return FALSE; + g_list_free (widgets); + + return result; } static gboolean |