[project @ 2006-01-02 22:06:59 by rjw]

Allow toolbars for non gui-windows

svn path=/import/netsurf/; revision=1959
This commit is contained in:
Richard Wilson 2006-01-02 22:06:59 +00:00
parent be9c1c9409
commit 4fb5bda6ac
1 changed files with 3 additions and 1 deletions

View File

@ -1307,7 +1307,9 @@ bool ro_gui_toolbar_click(wimp_pointer *pointer)
{
struct gui_window *g = ro_gui_toolbar_lookup(pointer->w);
assert(g);
/* toolbars in the options window have no gui_window */
if (!g)
return true;
/* try to close url-completion */
ro_gui_url_complete_close(g, pointer->i);