diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-09-01 21:13:07 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-09-01 21:36:56 +0800 |
commit | 85d6992961f24ed935a17ef8b09de11e75986c9e (patch) | |
tree | ae28f931ea79d84e999fb255456ca97aa28dd178 | |
parent | 900b09f4b5f9f51383519fa487079ce3124a38ae (diff) | |
download | gsoc2013-empathy-85d6992961f24ed935a17ef8b09de11e75986c9e.tar gsoc2013-empathy-85d6992961f24ed935a17ef8b09de11e75986c9e.tar.gz gsoc2013-empathy-85d6992961f24ed935a17ef8b09de11e75986c9e.tar.bz2 gsoc2013-empathy-85d6992961f24ed935a17ef8b09de11e75986c9e.tar.lz gsoc2013-empathy-85d6992961f24ed935a17ef8b09de11e75986c9e.tar.xz gsoc2013-empathy-85d6992961f24ed935a17ef8b09de11e75986c9e.tar.zst gsoc2013-empathy-85d6992961f24ed935a17ef8b09de11e75986c9e.zip |
Bug 628106 — Groups are not expanded when reconnecting
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
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |