From feba54b70cafab7c24a621053b83cc51bbacb2d4 Mon Sep 17 00:00:00 2001 From: stippi Date: Wed, 24 Feb 2010 10:39:17 +0000 Subject: [PATCH] Invalidate the BTabView when new tabs are added. Works around new tabs not showing immediately after they have been created, some pages don't set the title either, so then the tab still would't show. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@193 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/LauncherWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/webpositive/LauncherWindow.cpp b/src/apps/webpositive/LauncherWindow.cpp index 5fc38abc75..fe5f9b2c8a 100644 --- a/src/apps/webpositive/LauncherWindow.cpp +++ b/src/apps/webpositive/LauncherWindow.cpp @@ -415,7 +415,7 @@ void LauncherWindow::newTab(const BString& url, bool select) m_tabView->AddTab(webView); m_tabView->TabAt(m_tabView->CountTabs() - 1)->SetLabel("New tab"); // TODO: Remove when BTabView is fixed... - m_tabView->InvalidateLayout(); + m_tabView->Invalidate(); if (url.Length()) webView->LoadURL(url.String());