r5456 chris_y - /trunk/netsurf/amiga/gui.c

netsurf at semichrome.net netsurf at semichrome.net
Sun Sep 28 15:40:19 BST 2008


Author: chris_y
Date: Sun Sep 28 09:40:19 2008
New Revision: 5456

URL: http://source.netsurf-browser.org?rev=5456&view=rev
Log:
When the treeview window is the last one on screen and it is closed, NetSurf now
quits.

Modified:
    trunk/netsurf/amiga/gui.c

Modified: trunk/netsurf/amiga/gui.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/gui.c?rev=5456&r1=5455&r2=5456&view=diff
==============================================================================
--- trunk/netsurf/amiga/gui.c (original)
+++ trunk/netsurf/amiga/gui.c Sun Sep 28 09:40:19 2008
@@ -416,6 +416,11 @@
 		{
 			if(ami_tree_event((struct treeviw_window *)gwin))
 			{
+				if(IsMinListEmpty(window_list))
+				{
+					/* last window closed, so exit */
+					netsurf_quit = true;
+				}
 				break;
 			}
 			else




More information about the netsurf-commits mailing list