From eabb5339a3b993852e1c0a04817faa32612e12fb Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 15 Mar 2009 11:29:33 +0000 Subject: Close history and search windows when associated browser window closes. svn path=/trunk/netsurf/; revision=6786 --- amiga/gui.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/amiga/gui.c b/amiga/gui.c index 2c90103dc..eaa2d3e7a 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1999,10 +1999,17 @@ void gui_window_destroy(struct gui_window *g) if(!g) return; -// if(g->shared->searchwin) -// if(g->shared->searchwin->gwin == g) ami_search_close(); + if(g->shared->searchwin && (g->shared->searchwin->gwin == g)) + { + ami_search_close(); + win_destroyed = true; + } -// if(g->hw) ami_history_close(g->hw); + if(g->hw) + { + ami_history_close(g->hw); + win_destroyed = true; + } if(g->shared->tabs > 1) { -- cgit v1.2.3