From e7c6e9f7476fbcf4524baa322f4b831ff81e94c6 Mon Sep 17 00:00:00 2001 From: stippi Date: Wed, 5 May 2010 10:24:38 +0000 Subject: [PATCH] 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 --- src/apps/webpositive/BrowserWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index 75f1757ace..ee72d6b890 100644 --- a/src/apps/webpositive/BrowserWindow.cpp +++ b/src/apps/webpositive/BrowserWindow.cpp @@ -935,8 +935,8 @@ BrowserWindow::CreateNewTab(const BString& _url, bool select, BWebView* webView) if (CurrentWebView() != NULL) url = CurrentWebView()->MainFrameURL(); break; - default: case OpenBlankPage: + default: break; } } @@ -948,6 +948,7 @@ BrowserWindow::CreateNewTab(const BString& _url, bool select, BWebView* webView) fTabManager->SelectTab(fTabManager->CountTabs() - 1); SetCurrentWebView(webView); webView->WebPage()->ResendNotifications(); + fURLInputGroup->SetPageIcon(NULL); fURLInputGroup->SetText(url.String()); fURLInputGroup->MakeFocus(true); }