summaryrefslogtreecommitdiff
path: root/indra/llui/llcombobox.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-09-22 22:54:36 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-09-22 22:54:36 +0300
commitc2b55c4362111c124df30eb339461486bda32ec9 (patch)
tree841267dade995551e9d1ab8f39ab98c7a56174db /indra/llui/llcombobox.cpp
parente566e82269ff52a88e3dc28345bba6c273a2eebf (diff)
parent60ed688026269568a9eef67437dc780f88c92871 (diff)
Merged master(DRTVWR-503) into DRTVWR-514-keymappings
Diffstat (limited to 'indra/llui/llcombobox.cpp')
-rw-r--r--indra/llui/llcombobox.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llui/llcombobox.cpp b/indra/llui/llcombobox.cpp
index c7f0326ed4..52dc908655 100644
--- a/indra/llui/llcombobox.cpp
+++ b/indra/llui/llcombobox.cpp
@@ -514,6 +514,14 @@ S32 LLComboBox::getCurrentIndex() const
return -1;
}
+void LLComboBox::setEnabledByValue(const LLSD& value, BOOL enabled)
+{
+ LLScrollListItem *found = mList->getItem(value);
+ if (found)
+ {
+ found->setEnabled(enabled);
+ }
+}
void LLComboBox::createLineEditor(const LLComboBox::Params& p)
{