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); }