mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
iconview: Fix a problem with the previous change
After commit ffef28a7e8
,
gtk-icon-browser was spewing critical warnings when
changing sections. Avoid that by respecting the return
value of gtk_tree_model_get_iter.
This commit is contained in:
parent
02892c59d1
commit
8916ff8ffe
@ -3314,7 +3314,7 @@ gtk_icon_view_row_deleted (GtkTreeModel *model,
|
||||
if (gtk_tree_path_get_depth (path) > 1)
|
||||
return;
|
||||
|
||||
gtk_tree_model_get_iter (model, &iter, path);
|
||||
if (gtk_tree_model_get_iter (model, &iter, path))
|
||||
gtk_tree_model_unref_node (model, &iter);
|
||||
|
||||
index = gtk_tree_path_get_indices(path)[0];
|
||||
|
Loading…
Reference in New Issue
Block a user