mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
Unset default folder when it gets deleted.
This commit is contained in:
parent
fb9353f220
commit
4bf5ec0dad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user