Brand new windows should not be cloning an existing browser_window or they pick up old

local history.
Brand new tabs should not either but that appears to be unavoidable at present.

svn path=/trunk/netsurf/; revision=11872
This commit is contained in:
Chris Young 2011-03-01 19:09:57 +00:00
parent 4021924ea1
commit 46915c6b7b
2 changed files with 4 additions and 4 deletions

View File

@ -1339,15 +1339,15 @@ void ami_handle_msg(void)
case 'n':
if((option_kiosk_mode == false) &&
(gwin->bw->browser_window_type == BROWSER_WINDOW_NORMAL))
browser_window_create(NULL, gwin->bw,
browser_window_create(option_homepage_url, NULL,
0, true, false);
break;
case 't':
if((option_kiosk_mode == false) &&
(gwin->bw->browser_window_type == BROWSER_WINDOW_NORMAL))
browser_window_create(NULL, gwin->bw,
0, true, true);
browser_window_create(option_homepage_url,
gwin->bw, 0, true, true);
break;
case 'k':

View File

@ -490,7 +490,7 @@ void ami_menupick(ULONG code,struct gui_window_2 *gwin,struct MenuItem *item)
switch(itemnum)
{
case 0: // new window
bw = browser_window_create(option_homepage_url, gwin->bw, 0, true, openwin);
bw = browser_window_create(option_homepage_url, NULL, 0, true, openwin);
break;
case 1: // new tab