From 871fa04fc9156a4ee74091e836d416d896cce00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 10 Mar 2004 18:35:38 +0000 Subject: [PATCH] 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 --- src/apps/diskprobe/AttributeWindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/apps/diskprobe/AttributeWindow.cpp b/src/apps/diskprobe/AttributeWindow.cpp index bce20951cd..89f50729de 100644 --- a/src/apps/diskprobe/AttributeWindow.cpp +++ b/src/apps/diskprobe/AttributeWindow.cpp @@ -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 }