diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-27 13:31:40 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-27 13:31:40 +0100 |
commit | 4bf5ec0dada6fd2d64087fb6ca644838a3bbf3ac (patch) | |
tree | 32d4177fee57dbace281ca34ead4f61fb1ea7205 /desktop/hotlist.c | |
parent | fb9353f2208eb8cf3dc6055399d2efd6ac609d94 (diff) | |
download | netsurf-4bf5ec0dada6fd2d64087fb6ca644838a3bbf3ac.tar.gz |
Unset default folder when it gets deleted.
Diffstat (limited to 'desktop/hotlist.c')
-rw-r--r-- | desktop/hotlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c index cde038a4a..07cf2e424 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -303,6 +303,8 @@ static nserror hotlist_tree_node_folder_cb( switch (msg.msg) { case TREE_MSG_NODE_DELETE: + if (f == hl_ctx.default_folder) + hl_ctx.default_folder = NULL; free((void*)f->data.value); /* Eww */ free(f); break; |