diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-03-25 22:58:26 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-03-25 22:58:26 +0200 |
commit | b2d339ff066340add19092a3f79b3f48d5ade957 (patch) | |
tree | 44d58dc436ad0721e4c8ea97d0b639d31e5fb88c /indra/newview/llpanellandmarkinfo.cpp | |
parent | d38c2d8cd8b5588263b0bd01bfcb122282fb6af9 (diff) |
SL-14855 Disable edit button for uneditable items
Diffstat (limited to 'indra/newview/llpanellandmarkinfo.cpp')
-rw-r--r-- | indra/newview/llpanellandmarkinfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llpanellandmarkinfo.cpp b/indra/newview/llpanellandmarkinfo.cpp index 6751c25fb9..5b24800038 100644 --- a/indra/newview/llpanellandmarkinfo.cpp +++ b/indra/newview/llpanellandmarkinfo.cpp @@ -360,6 +360,11 @@ void LLPanelLandmarkInfo::toggleLandmarkEditMode(BOOL enabled) setFocus(TRUE); } +void LLPanelLandmarkInfo::setCanEdit(BOOL enabled) +{ + getChild<LLButton>("edit_btn")->setEnabled(enabled); +} + const std::string& LLPanelLandmarkInfo::getLandmarkTitle() const { return mLandmarkTitleEditor->getText(); |