Do not emit has-child-toggled when a root level node is removed

This commit is contained in:
Kristian Rietveld 2009-09-01 17:49:02 +02:00
parent 15fdf44501
commit 532eccabde

View File

@ -997,7 +997,10 @@ gtk_tree_model_filter_remove_node (GtkTreeModelFilter *filter,
* if level != root level and visible nodes == 0, emit row-has-child-toggled.
*/
if (level != filter->priv->root && level->visible_nodes == 0)
if (level != filter->priv->root
&& level->visible_nodes == 0
&& level->parent_elt
&& level->parent_elt->visible)
emit_child_toggled = TRUE;
if (length > 1)