Simplify the code.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@399 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
committed by
Alexandre Deckner
parent
8061d9ebff
commit
1137289fbc
@@ -1228,12 +1228,9 @@ BrowserWindow::_TabChanged(int32 index)
|
|||||||
|
|
||||||
SetCurrentWebView(webView);
|
SetCurrentWebView(webView);
|
||||||
|
|
||||||
if (webView)
|
|
||||||
_UpdateTitle(webView->MainFrameTitle());
|
|
||||||
else
|
|
||||||
_UpdateTitle("");
|
|
||||||
|
|
||||||
if (webView) {
|
if (webView) {
|
||||||
|
_UpdateTitle(webView->MainFrameTitle());
|
||||||
|
|
||||||
PageUserData* userData = static_cast<PageUserData*>(
|
PageUserData* userData = static_cast<PageUserData*>(
|
||||||
webView->GetUserData());
|
webView->GetUserData());
|
||||||
if (userData && userData->FocusedView() != NULL)
|
if (userData && userData->FocusedView() != NULL)
|
||||||
@@ -1245,7 +1242,8 @@ BrowserWindow::_TabChanged(int32 index)
|
|||||||
// Trigger update of the interface to the new page, by requesting
|
// Trigger update of the interface to the new page, by requesting
|
||||||
// to resend all notifications.
|
// to resend all notifications.
|
||||||
webView->WebPage()->ResendNotifications();
|
webView->WebPage()->ResendNotifications();
|
||||||
}
|
} else
|
||||||
|
_UpdateTitle("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user