Maybe CurrentWebView() is NULL too...

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@400 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-04-07 13:00:55 +00:00 committed by Alexandre Deckner
parent 1137289fbc
commit 1cad765a3b
1 changed files with 2 additions and 1 deletions

View File

@ -1224,6 +1224,7 @@ BrowserWindow::_TabChanged(int32 index)
if (webView == CurrentWebView()) if (webView == CurrentWebView())
return; return;
if (CurrentWebView() != NULL)
CurrentWebView()->SetUserData(new PageUserData(CurrentFocus())); CurrentWebView()->SetUserData(new PageUserData(CurrentFocus()));
SetCurrentWebView(webView); SetCurrentWebView(webView);