diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-09-28 14:40:19 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-09-28 14:40:19 +0000 |
commit | f0926760125501228b2b506c92e8e2bf6fdd83e6 (patch) | |
tree | ded38e01efa32ca91211c747d6993dea3a321ccc /amiga/gui.c | |
parent | 946115fa7640ddf8b8f81598254fb3cfcfc184f2 (diff) | |
download | netsurf-f0926760125501228b2b506c92e8e2bf6fdd83e6.tar.gz netsurf-f0926760125501228b2b506c92e8e2bf6fdd83e6.tar.bz2 |
When the treeview window is the last one on screen and it is closed, NetSurf now
quits.
svn path=/trunk/netsurf/; revision=5456
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 57b2dd478..f00671221 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -416,6 +416,11 @@ void ami_handle_msg(void) { if(ami_tree_event((struct treeviw_window *)gwin)) { + if(IsMinListEmpty(window_list)) + { + /* last window closed, so exit */ + netsurf_quit = true; + } break; } else |