mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Close history and search windows when associated browser window closes.
svn path=/trunk/netsurf/; revision=6786
This commit is contained in:
parent
eab55f2c5a
commit
eabb5339a3
13
amiga/gui.c
13
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user