r10940 chris_y - /trunk/netsurf/amiga/tree.c

netsurf at semichrome.net netsurf at semichrome.net
Wed Nov 3 22:21:54 GMT 2010


Author: chris_y
Date: Wed Nov  3 17:21:54 2010
New Revision: 10940

URL: http://source.netsurf-browser.org?rev=10940&view=rev
Log:
Fix crash on multi-select drags

Modified:
    trunk/netsurf/amiga/tree.c

Modified: trunk/netsurf/amiga/tree.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/tree.c?rev=10940&r1=10939&r2=10940&view=diff
==============================================================================
--- trunk/netsurf/amiga/tree.c (original)
+++ trunk/netsurf/amiga/tree.c Wed Nov  3 17:21:54 2010
@@ -279,7 +279,7 @@
 	{
 		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);
 		}




More information about the netsurf-commits mailing list