Fix crash on multi-select drags

svn path=/trunk/netsurf/; revision=10940
This commit is contained in:
Chris Young 2010-11-03 22:21:54 +00:00
parent ea57818977
commit ce83680b4d

View File

@ -279,7 +279,7 @@ void ami_tree_drag_end(struct treeview_window *twin, int x, int y)
{
selected_node = tree_get_selected_node(tree_get_root(twin->tree));
if(tree_node_is_folder(selected_node))
if((selected_node == NULL) || (tree_node_is_folder(selected_node)))
{
DisplayBeep(scrn);
}