diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-08-20 18:04:40 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-08-20 18:04:40 +0800 |
commit | 23566ca74cbdca4b237f9fd0758493bee26e95a9 (patch) | |
tree | 45668d7db8b7b02b537ed6fcb8d82a306351fa36 | |
parent | 7906c05973b29175938775fa5fabc3e3f347b372 (diff) | |
download | gsoc2013-empathy-23566ca74cbdca4b237f9fd0758493bee26e95a9.tar gsoc2013-empathy-23566ca74cbdca4b237f9fd0758493bee26e95a9.tar.gz gsoc2013-empathy-23566ca74cbdca4b237f9fd0758493bee26e95a9.tar.bz2 gsoc2013-empathy-23566ca74cbdca4b237f9fd0758493bee26e95a9.tar.lz gsoc2013-empathy-23566ca74cbdca4b237f9fd0758493bee26e95a9.tar.xz gsoc2013-empathy-23566ca74cbdca4b237f9fd0758493bee26e95a9.tar.zst gsoc2013-empathy-23566ca74cbdca4b237f9fd0758493bee26e95a9.zip |
Don't try to expand groups if the EmpathyIndividualView's store is unset
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index d2562fcb8..9a7e5215e 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -1356,8 +1356,12 @@ individual_view_expand_idle_cb (EmpathyIndividualView *self) g_signal_handlers_block_by_func (self, individual_view_row_expand_or_collapse_cb, GINT_TO_POINTER (FALSE)); - gtk_tree_model_foreach (GTK_TREE_MODEL (priv->filter), - (GtkTreeModelForeachFunc) expand_idle_foreach_cb, self); + /* The store/filter could've been removed while we were in the idle queue */ + if (priv->filter != NULL) + { + gtk_tree_model_foreach (GTK_TREE_MODEL (priv->filter), + (GtkTreeModelForeachFunc) expand_idle_foreach_cb, self); + } g_signal_handlers_unblock_by_func (self, individual_view_row_expand_or_collapse_cb, GINT_TO_POINTER (FALSE)); |