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