Don't update if there is no browser attached (fixes potential crash on startup)

This commit is contained in:
Chris Young 2014-07-12 16:01:43 +01:00
parent c3514c2c50
commit d61713d107
1 changed files with 1 additions and 1 deletions

View File

@ -3100,7 +3100,7 @@ void ami_toggletabbar(struct gui_window_2 *gwin, bool show)
RethinkLayout((struct Gadget *)gwin->objects[GID_MAIN],
gwin->win, NULL, TRUE);
browser_window_update(gwin->bw, false);
if(gwin->bw) browser_window_update(gwin->bw, false);
}
void ami_gui_tabs_toggle_all(void)