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:
@@ -1159,6 +1159,9 @@ BTabView::RemoveTab(int32 index)
|
|||||||
|
|
||||||
tab->Deselect();
|
tab->Deselect();
|
||||||
|
|
||||||
|
if (fContainerView->GetLayout())
|
||||||
|
fContainerView->GetLayout()->RemoveItem(index);
|
||||||
|
|
||||||
if (index <= fSelection && fSelection != 0)
|
if (index <= fSelection && fSelection != 0)
|
||||||
fSelection--;
|
fSelection--;
|
||||||
|
|
||||||
@@ -1172,9 +1175,6 @@ BTabView::RemoveTab(int32 index)
|
|||||||
else
|
else
|
||||||
SetFocusTab(fFocus, true);
|
SetFocusTab(fFocus, true);
|
||||||
|
|
||||||
if (fContainerView->GetLayout())
|
|
||||||
fContainerView->GetLayout()->RemoveItem(index);
|
|
||||||
|
|
||||||
return tab;
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user