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:
Guillermo Bonvehi
2014-04-26 12:20:40 +12:00
committed by Jessica Hamilton
parent c620610b98
commit 667cfcdd56
+1 -1
View File
@@ -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;