Reset the page icon in the URL input for new tabs.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@487 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi
2012-07-03 15:44:09 +02:00
committed by Alexandre Deckner
parent ea40bbf2d1
commit e7c6e9f747
+2 -1
View File
@@ -935,8 +935,8 @@ BrowserWindow::CreateNewTab(const BString& _url, bool select, BWebView* webView)
if (CurrentWebView() != NULL) if (CurrentWebView() != NULL)
url = CurrentWebView()->MainFrameURL(); url = CurrentWebView()->MainFrameURL();
break; break;
default:
case OpenBlankPage: case OpenBlankPage:
default:
break; break;
} }
} }
@@ -948,6 +948,7 @@ BrowserWindow::CreateNewTab(const BString& _url, bool select, BWebView* webView)
fTabManager->SelectTab(fTabManager->CountTabs() - 1); fTabManager->SelectTab(fTabManager->CountTabs() - 1);
SetCurrentWebView(webView); SetCurrentWebView(webView);
webView->WebPage()->ResendNotifications(); webView->WebPage()->ResendNotifications();
fURLInputGroup->SetPageIcon(NULL);
fURLInputGroup->SetText(url.String()); fURLInputGroup->SetText(url.String());
fURLInputGroup->MakeFocus(true); fURLInputGroup->MakeFocus(true);
} }