Fix closing tabs.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@165 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-02-21 15:30:49 +00:00
parent d3d066c322
commit df621688c5

View File

@ -337,7 +337,7 @@ void LauncherWindow::MessageReceived(BMessage* message)
case CLOSE_TAB: {
printf("CLOSE_TAB\n");
if (m_tabView->CountTabs() > 1)
delete m_tabView->RemoveTab(m_tabView->FocusTab());
delete m_tabView->RemoveTab(m_tabView->Selection());
break;
}