diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-10-23 12:36:47 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-10-23 12:36:47 -0400 |
commit | 7fda8f8d0b5c96b9264b0b3752666d866b64146b (patch) | |
tree | c37f28b461a22fbe50fa66de19012fcb615aa3b1 /indra/llui/llscrolllistctrl.cpp | |
parent | 910fbde7885cca758328c3ce6d0d77f382cd5e12 (diff) | |
parent | 7783191f91b19d10a14cdb475fedad46ddaa8a9b (diff) |
Merge branch 'develop' into marchcat/xcode-16
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
-rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 8093536868..3ed328e37f 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -423,6 +423,19 @@ std::vector<LLScrollListItem*> LLScrollListCtrl::getAllSelected() const return ret; } +std::vector<LLSD> LLScrollListCtrl::getAllSelectedValues() const +{ + std::vector<LLSD> ret; + for (LLScrollListItem* item : mItemList) + { + if (item->getSelected()) + { + ret.push_back(item->getValue()); + } + } + return ret; +} + S32 LLScrollListCtrl::getNumSelected() const { S32 numSelected = 0; @@ -1510,7 +1523,7 @@ bool LLScrollListCtrl::setSelectedByValue(const LLSD& value, bool selected) { if (selected) { - selectItem(item, -1); + selectItem(item, -1, !mAllowMultipleSelection); } else { |