mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Do not emit has-child-toggled when a root level node is removed
This commit is contained in:
parent
15fdf44501
commit
532eccabde
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user