From 4bf5ec0dada6fd2d64087fb6ca644838a3bbf3ac Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 27 Aug 2013 13:31:40 +0100 Subject: [PATCH] Unset default folder when it gets deleted. --- desktop/hotlist.c | 2 ++ 1 file changed, 2 insertions(+) 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;