diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-13 19:09:48 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-13 19:09:48 +0000 |
commit | 0415edc9c481f83f9741fa18844cf8a0ea92dd7a (patch) | |
tree | abba5bb31a1f403c6d1e1d11a838b6e27123ebd0 /amiga | |
parent | f0633090f24a1741c0b4ee14d1ac962bacf4f4db (diff) | |
download | netsurf-0415edc9c481f83f9741fa18844cf8a0ea92dd7a.tar.gz netsurf-0415edc9c481f83f9741fa18844cf8a0ea92dd7a.tar.bz2 |
avoid a crash when switching tabs
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/gui.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index a26510fcc..c5e65c9a2 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2819,8 +2819,7 @@ void ami_switch_tab(struct gui_window_2 *gwin, bool redraw) return; } - if(browser_window_has_content(gwin->gw->bw) == false) - { + if((gwin->gw->bw == NULL) || (browser_window_has_content(gwin->gw->bw)) == false) { RefreshSetGadgetAttrs((struct Gadget *)gwin->objects[GID_URL], gwin->win, NULL, STRINGA_TextVal, "", TAG_DONE); |