Stop over-zealous deletions, we should only be deleting the currently-selected node.

svn path=/trunk/netsurf/; revision=5545
This commit is contained in:
Chris Young 2008-10-11 23:06:18 +00:00
parent fbb2ae7f5f
commit dfeb722504

View File

@ -560,7 +560,7 @@ BOOL ami_tree_event(struct treeview_window *twin)
GetListBrowserNodeAttrs(lbnode,
LBNA_UserData,(ULONG *)&treenode,
TAG_DONE);
tree_delete_node(twin->tree, treenode, true);
tree_delete_node(twin->tree, treenode, false);
/* We are recreating the list from scratch as there is no obvious easy way
to delete children from a listbrowser list */
ami_recreate_listbrowser(twin);