diff options
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 13 |
1 files 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) { |