summaryrefslogtreecommitdiff
path: root/desktop/global_history.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-07-03 12:38:30 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-07-03 12:38:30 +0100
commit4f238758db628ee62e4c64411b9f7860dc9f46d1 (patch)
tree243546bccb070d2236555dab832fbc57ebab5f9b /desktop/global_history.c
parent657d6ed587a4d27510de7c5836d790e1589c1075 (diff)
downloadnetsurf-4f238758db628ee62e4c64411b9f7860dc9f46d1.tar.gz
netsurf-4f238758db628ee62e4c64411b9f7860dc9f46d1.tar.bz2
Don't allow empty folders.
Diffstat (limited to 'desktop/global_history.c')
-rw-r--r--desktop/global_history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c
index e5326c60f..d3d3391f5 100644
--- a/desktop/global_history.c
+++ b/desktop/global_history.c
@@ -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;