Only call gui_window_new_content for browser windows with gui windows.

svn path=/trunk/netsurf/; revision=12475
This commit is contained in:
Michael Drake 2011-06-14 20:48:58 +00:00
parent 53f4da3420
commit 319a90bff7
1 changed files with 2 additions and 1 deletions

View File

@ -606,7 +606,8 @@ nserror browser_window_callback(hlcache_handle *c,
bw->scrollbar = NULL;
gui_window_new_content(bw->window);
if (bw->window)
gui_window_new_content(bw->window);
browser_window_refresh_url_bar(bw,
content_get_url(bw->current_content),