]> git.0d.be Git - empathy.git/commitdiff
Bug 628106 — Groups are not expanded when reconnecting
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 1 Sep 2010 13:13:07 +0000 (14:13 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 1 Sep 2010 13:36:56 +0000 (14:36 +0100)
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

index d18fb2a1088d1cd452dac20e6967ee59e03d6b86..34032d651026cb7d477c7320e0231991147ec9d2 100644 (file)
@@ -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;
 }