When using layout mode, we need to remove the tab from the layout before updating the selection, otherwise the correct view isn't unhidden in some cases.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35558 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2010-02-21 18:08:38 +00:00
parent f24e3c9f1e
commit b1e7ac2a63
1 changed files with 3 additions and 3 deletions

View File

@ -1159,6 +1159,9 @@ BTabView::RemoveTab(int32 index)
tab->Deselect();
if (fContainerView->GetLayout())
fContainerView->GetLayout()->RemoveItem(index);
if (index <= fSelection && fSelection != 0)
fSelection--;
@ -1172,9 +1175,6 @@ BTabView::RemoveTab(int32 index)
else
SetFocusTab(fFocus, true);
if (fContainerView->GetLayout())
fContainerView->GetLayout()->RemoveItem(index);
return tab;
}