aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-09-01 19:59:03 +0800
committerPhilip Withnall <philip.withnall@collabora.co.uk>2010-09-01 21:17:19 +0800
commit900b09f4b5f9f51383519fa487079ce3124a38ae (patch)
treee7e3858e3ccd4a48cd363a3c6d3714deb4e521ad /libempathy-gtk
parentab1bd1a137ac8ffd7245669663e739e309a0a86f (diff)
downloadgsoc2013-empathy-900b09f4b5f9f51383519fa487079ce3124a38ae.tar
gsoc2013-empathy-900b09f4b5f9f51383519fa487079ce3124a38ae.tar.gz
gsoc2013-empathy-900b09f4b5f9f51383519fa487079ce3124a38ae.tar.bz2
gsoc2013-empathy-900b09f4b5f9f51383519fa487079ce3124a38ae.tar.lz
gsoc2013-empathy-900b09f4b5f9f51383519fa487079ce3124a38ae.tar.xz
gsoc2013-empathy-900b09f4b5f9f51383519fa487079ce3124a38ae.tar.zst
gsoc2013-empathy-900b09f4b5f9f51383519fa487079ce3124a38ae.zip
Ensure all persona tables are removed from EmpathyIndividualWidget
In the case that EmpathyIndividualWidget is going from showing Personas to showing an Individual table, ensure that all persona tables are removed from the widget, including those for Personas who're being removed from the Individual. Closes: bgo#628481
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 7e4be2235..40ece1eec 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -1676,6 +1676,8 @@ personas_changed_cb (FolksIndividual *individual,
/* Remove all Personas */
for (l = personas; l != NULL; l = l->next)
remove_persona (self, FOLKS_PERSONA (l->data));
+ for (l = removed; l != NULL; l = l->next)
+ remove_persona (self, FOLKS_PERSONA (l->data));
/* Set up the Individual table instead */
individual_table_set_up (self);