diff options
author | Ansariel <none@none> | 2016-11-19 16:50:02 +0100 |
---|---|---|
committer | Ansariel <none@none> | 2016-11-19 16:50:02 +0100 |
commit | 11c03f8fe3277313c27d5a35302c79d0d09bd670 (patch) | |
tree | 4e51061c7f04de3c9be050f9f1ac5cd605d4a631 /indra/llui/lllineeditor.cpp | |
parent | 75eb1e6ca6ccb501dba43ccdcaff5c500ca62170 (diff) |
STORM-2140 LLLineEditor enabled-state cannot properly set via XUI
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r-- | indra/llui/lllineeditor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index fa99a19c9d..becb45fa79 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -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; |