From 900b09f4b5f9f51383519fa487079ce3124a38ae Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 1 Sep 2010 12:59:03 +0100 Subject: 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 --- libempathy-gtk/empathy-individual-widget.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libempathy-gtk') 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); -- cgit v1.2.3