Added a comment for the R5 BTabView::Select() workaround - also uses

Window() instead of Parent() now, since I'd guess that's the culprit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6948 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-03-10 18:35:38 +00:00
parent 4e0afad0c3
commit 871fa04fc9

View File

@ -150,10 +150,16 @@ EditorTabView::SetTypeEditorTab(BView *view)
tab->SetView(view);
FrameResized(0, 0);
#ifdef COMPILE_FOR_R5
if (Parent() != NULL)
#endif
if (Window() != NULL) {
// With R5's BTabView, calling select without being
// attached to a window crashes...
Select(0);
}
#else
Select(0);
#endif
}