avoid crash

svn path=/trunk/netsurf/; revision=12481
This commit is contained in:
Chris Young 2011-06-15 17:40:12 +00:00
parent 543a08ca22
commit dd99b8a461

View File

@ -98,7 +98,8 @@ void gui_clear_selection(struct gui_window *g)
{
if(!g) return;
if(!g->shared->win) return;
if(g->shared->bw->browser_window_type != BROWSER_WINDOW_NORMAL) return;
if((g->shared->bw) &&
(g->shared->bw->browser_window_type != BROWSER_WINDOW_NORMAL)) return;
if(option_kiosk_mode == true) return;
OffMenu(g->shared->win, AMI_MENU_CLEAR);