STORM-2140 LLLineEditor enabled-state cannot properly set via XUI
parent
75eb1e6ca6
commit
11c03f8fe3
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -108,6 +108,9 @@ public:
|
|||
|
||||
Params();
|
||||
};
|
||||
|
||||
void initFromParams(const LLLineEditor::Params& params);
|
||||
|
||||
protected:
|
||||
LLLineEditor(const Params&);
|
||||
friend class LLUICtrlFactory;
|
||||
|
|
|
|||
Loading…
Reference in New Issue