[empathy] Bug 628106 — Groups are not expanded when reconnecting
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Bug 628106 — Groups are not expanded when reconnecting
- Date: Wed, 1 Sep 2010 13:37:20 +0000 (UTC)
commit 85d6992961f24ed935a17ef8b09de11e75986c9e
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Sep 1 14:13:07 2010 +0100
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
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 d18fb2a..34032d6 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]