mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 13:29:21 +03:00
New window opens with homepage, rather than current page.
svn path=/trunk/netsurf/; revision=12457
This commit is contained in:
parent
5eac88cb71
commit
324e5bfce4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user