From 85d6992961f24ed935a17ef8b09de11e75986c9e Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 1 Sep 2010 14:13:07 +0100 Subject: =?UTF-8?q?Bug=20628106=20=E2=80=94=20Groups=20are=20not=20expande?= =?UTF-8?q?d=20when=20reconnecting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure that the list of groups to expand is cleared when going offline, so that it can be freshly created when we come back online again. Closes: bgo#628106 --- libempathy-gtk/empathy-individual-view.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libempathy-gtk/empathy-individual-view.c') diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index d18fb2a10..34032d651 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -1506,6 +1506,11 @@ individual_view_expand_idle_cb (EmpathyIndividualView *self) g_object_unref (self); priv->expand_groups_idle_handler = 0; + /* Empty the table of groups to expand/contract, since it may contain groups + * which no longer exist in the tree view. This can happen after going + * offline, for example. */ + g_hash_table_remove_all (priv->expand_groups); + return FALSE; } -- cgit v1.2.3