New window opens with homepage, rather than current page.

svn path=/trunk/netsurf/; revision=12457
This commit is contained in:
Michael Drake 2011-06-04 13:51:42 +00:00
parent 5eac88cb71
commit 324e5bfce4
1 changed files with 7 additions and 1 deletions

View File

@ -527,7 +527,13 @@ static void nsgtk_openfile_open(const char *filename)
MULTIHANDLER(newwindow)
{
struct browser_window *bw = gui_window_get_browser_window(g->top_level);
const char *url = gtk_entry_get_text(GTK_ENTRY(g->url_bar));
const char *url = option_homepage_url;
if ((url != NULL) && (url[0] == '\0'))
url = NULL;
if (url == NULL)
url = NETSURF_HOMEPAGE;
browser_window_create(url, bw, NULL, false, false);