Skip to content

Commit

Permalink
treebrowser: Don't try to clear NULL iter
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Jul 7, 2012
1 parent 03d8825 commit b6020c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion treebrowser/src/treebrowser.c
Expand Up @@ -486,7 +486,8 @@ treebrowser_browse(gchar *directory, gpointer parent)
treebrowser_bookmarks_set_state();
}

gtk_tree_store_iter_clear_nodes(parent, FALSE);
if (parent)
gtk_tree_store_iter_clear_nodes(parent, FALSE);

list = utils_get_file_list(directory, NULL, NULL);
if (list != NULL)
Expand Down

0 comments on commit b6020c3

Please sign in to comment.