summaryrefslogtreecommitdiff
path: root/desktop/hotlist.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-08-27 13:31:40 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-08-27 13:31:40 +0100
commit4bf5ec0dada6fd2d64087fb6ca644838a3bbf3ac (patch)
tree32d4177fee57dbace281ca34ead4f61fb1ea7205 /desktop/hotlist.c
parentfb9353f2208eb8cf3dc6055399d2efd6ac609d94 (diff)
downloadnetsurf-4bf5ec0dada6fd2d64087fb6ca644838a3bbf3ac.tar.gz
Unset default folder when it gets deleted.
Diffstat (limited to 'desktop/hotlist.c')
-rw-r--r--desktop/hotlist.c2
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;