AddTab(): Explicitly select the first-added tab. Fixes the problem that the page
wouldn't be made visible, when the tabs were added after the tab view had been attached to the window. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30398 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1133,6 +1133,10 @@ BTabView::AddTab(BView *target, BTab *tab)
|
|||||||
fContainerView->GetLayout()->AddView(CountTabs(), target);
|
fContainerView->GetLayout()->AddView(CountTabs(), target);
|
||||||
|
|
||||||
fTabList->AddItem(tab);
|
fTabList->AddItem(tab);
|
||||||
|
|
||||||
|
// When we don't have a any tabs yet, select this one.
|
||||||
|
if (CountTabs() == 1)
|
||||||
|
Select(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user