mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
treemodelfilter: bring if-condition in sync
Bring the if-condition in sync with the other if-conditions in the function where the "path" variable is used.
This commit is contained in:
parent
7cff8c4403
commit
7c0526e9b2
@ -1650,7 +1650,7 @@ gtk_tree_model_filter_remove_elt_from_level (GtkTreeModelFilter *filter,
|
||||
iter.user_data = level;
|
||||
iter.user_data2 = elt;
|
||||
|
||||
if (orig_level_ext_ref_count > 0)
|
||||
if (!parent || orig_level_ext_ref_count > 0)
|
||||
path = gtk_tree_model_get_path (GTK_TREE_MODEL (filter), &iter);
|
||||
else
|
||||
/* If the level is not visible, the parent is potentially invisible
|
||||
|
Loading…
Reference in New Issue
Block a user