aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-08-29 21:50:35 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-08-29 21:52:57 +0800
commit5f46f971707112e712ea0b7e2f64cdd89d4074dc (patch)
tree46e9379071717de42e6e547050dda33c4bbca973
parent9ab11de8216bfe2d68d3ddb1ab62c4f586d7efd2 (diff)
downloadgsoc2013-empathy-5f46f971707112e712ea0b7e2f64cdd89d4074dc.tar
gsoc2013-empathy-5f46f971707112e712ea0b7e2f64cdd89d4074dc.tar.gz
gsoc2013-empathy-5f46f971707112e712ea0b7e2f64cdd89d4074dc.tar.bz2
gsoc2013-empathy-5f46f971707112e712ea0b7e2f64cdd89d4074dc.tar.lz
gsoc2013-empathy-5f46f971707112e712ea0b7e2f64cdd89d4074dc.tar.xz
gsoc2013-empathy-5f46f971707112e712ea0b7e2f64cdd89d4074dc.tar.zst
gsoc2013-empathy-5f46f971707112e712ea0b7e2f64cdd89d4074dc.zip
roster-model-manager: always remove removed individual from the top group
If the individual has been removed from the manager we should always remove it from the top group members, even if he's still eligible for this group. https://bugzilla.gnome.org/show_bug.cgi?id=682938
-rw-r--r--libempathy-gtk/empathy-roster-model-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-roster-model-manager.c b/libempathy-gtk/empathy-roster-model-manager.c
index bf0f9064a..118b3afb2 100644
--- a/libempathy-gtk/empathy-roster-model-manager.c
+++ b/libempathy-gtk/empathy-roster-model-manager.c
@@ -142,8 +142,7 @@ members_changed_cb (EmpathyIndividualManager *manager,
for (l = removed; l != NULL; l = g_list_next (l))
{
- if (individual_in_top_group_members (self, l->data) &&
- !individual_should_be_in_top_group_members (self, l->data))
+ if (individual_in_top_group_members (self, l->data))
self->priv->top_group_members = g_list_remove (
self->priv->top_group_members, l->data);