From 5096093590aae37e154ddeedc15aca57a14ee01d Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Mon, 4 Oct 2010 01:38:44 +0000 Subject: [PATCH] Remove B_NAVIGABLE flag from main view after setup the child text view that use the flags from the main view. Fix #6431. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38879 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/TextControl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kits/interface/TextControl.cpp b/src/kits/interface/TextControl.cpp index 095ec72222..c7e37b6348 100644 --- a/src/kits/interface/TextControl.cpp +++ b/src/kits/interface/TextControl.cpp @@ -1073,10 +1073,6 @@ BTextControl::_InitData(const char* label, const BMessage* archive) if (label) fDivider = floorf(bounds.Width() / 2.0f); - uint32 navigableFlags = Flags() & B_NAVIGABLE; - if (navigableFlags != 0) - BView::SetFlags(Flags() & ~B_NAVIGABLE); - } @@ -1119,6 +1115,10 @@ BTextControl::_InitText(const char* initialText, const BMessage* archive) SetAlignment((alignment)labelAlignment, (alignment)textAlignment); } + + uint32 navigableFlags = Flags() & B_NAVIGABLE; + if (navigableFlags != 0) + BView::SetFlags(Flags() & ~B_NAVIGABLE); }