Close history and search windows when associated browser window closes.

svn path=/trunk/netsurf/; revision=6786
This commit is contained in:
Chris Young 2009-03-15 11:29:33 +00:00
parent eab55f2c5a
commit eabb5339a3
1 changed files with 10 additions and 3 deletions

View File

@ -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)
{