Don't allow empty folders.

This commit is contained in:
Michael Drake 2013-07-03 12:38:30 +01:00
parent 657d6ed587
commit 4f238758db

View File

@ -712,7 +712,7 @@ nserror global_history_init(struct core_window_callback_table *cw_t,
err = treeview_create(&gh_ctx.tree, &tree_cb_t,
N_FIELDS, gh_ctx.fields,
cw_t, core_window_handle,
TREEVIEW_NO_MOVES);
TREEVIEW_NO_MOVES | TREEVIEW_DEL_EMPTY_DIRS);
if (err != NSERROR_OK) {
gh_ctx.tree = NULL;
return err;