[empathy] roster-view: add_to_displayed: no need to try refiltering groups in non group mode



commit b7d71d0633ae264acb5b3070d0f318b356f6cabc
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Jun 19 11:43:08 2012 +0200

    roster-view: add_to_displayed: no need to try refiltering groups in non group mode
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678205

 libempathy-gtk/empathy-roster-view.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c
index 1e98efc..cbc2c5c 100644
--- a/libempathy-gtk/empathy-roster-view.c
+++ b/libempathy-gtk/empathy-roster-view.c
@@ -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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]