]> git.0d.be Git - empathy.git/commitdiff
roster-view: add_to_displayed: no need to try refiltering groups in non group mode
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 19 Jun 2012 09:43:08 +0000 (11:43 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 19 Jun 2012 11:30:44 +0000 (13:30 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=678205

libempathy-gtk/empathy-roster-view.c

index 1e98efcfe253feac8a21a72d5bcc77d71df95321..cbc2c5c140f9eedc13737dd34f55b0c98360e776 100644 (file)
@@ -725,6 +725,10 @@ add_to_displayed (EmpathyRosterView *self,
 
   /* Groups of this contact may now be displayed if we just displays the first
    * child in this group. */
+
+  if (!self->priv->show_groups)
+    return;
+
   individual = empathy_roster_contact_get_individual (contact);
   contacts = g_hash_table_lookup (self->priv->roster_contacts, individual);
   if (contacts == NULL)