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:
parent
4e0afad0c3
commit
871fa04fc9
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user