TabView BTab::Select only add child if it doesn't have a parent
Signed-off-by: Jessica Hamilton <[email protected]>
This commit is contained in:
committed by
Jessica Hamilton
parent
c620610b98
commit
667cfcdd56
@@ -151,7 +151,7 @@ BTab::Select(BView *owner)
|
||||
|
||||
// NOTE: Views are not added/removed, if there is layout,
|
||||
// they are made visible/invisible in that case.
|
||||
if (!owner->GetLayout())
|
||||
if (!owner->GetLayout() && View()->Parent() == NULL)
|
||||
owner->AddChild(fView);
|
||||
|
||||
fSelected = true;
|
||||
|
||||
Reference in New Issue
Block a user