STORM-2140 LLLineEditor enabled-state cannot properly set via XUI

meow-7.2.2
Ansariel 2016-11-19 16:50:02 +01:00
parent 75eb1e6ca6
commit 11c03f8fe3
2 changed files with 10 additions and 0 deletions

View File

@ -221,6 +221,13 @@ LLLineEditor::~LLLineEditor()
gFocusMgr.releaseFocusIfNeeded( this );
}
void LLLineEditor::initFromParams(const LLLineEditor::Params& params)
{
LLUICtrl::initFromParams(params);
LLUICtrl::setEnabled(TRUE);
setEnabled(params.enabled);
}
void LLLineEditor::onFocusReceived()
{
gEditMenuHandler = this;

View File

@ -108,6 +108,9 @@ public:
Params();
};
void initFromParams(const LLLineEditor::Params& params);
protected:
LLLineEditor(const Params&);
friend class LLUICtrlFactory;