Commit e97b05ac authored by Benjamin Otte's avatar Benjamin Otte

filesystemmodel: Add a missing check

Paths with depth > 1 should return FALSE instead of pretending the depth
is 1.
parent eb8c2dfa
......@@ -512,6 +512,9 @@ gtk_file_system_model_get_iter (GtkTreeModel *tree_model,
{
g_return_val_if_fail (gtk_tree_path_get_depth (path) > 0, FALSE);
if (gtk_tree_path_get_depth (path) > 1)
return FALSE;
return gtk_file_system_model_iter_nth_child (tree_model,
iter,
NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment