Browse files

treebrowser: Don't try to clear NULL iter

  • Loading branch information...
1 parent 03d8825 commit b6020c34cb9723a6378a381388f567c45d8c6907 @b4n b4n committed Jul 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 treebrowser/src/treebrowser.c
View
3 treebrowser/src/treebrowser.c
@@ -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)

0 comments on commit b6020c3

Please sign in to comment.