diff options
author | leviathan <leviathan@lindenlab.com> | 2024-06-27 00:18:42 -0700 |
---|---|---|
committer | Andrew Meadows <andrew.l.meadows@gmail.com> | 2024-10-03 09:03:28 -0700 |
commit | 9c986bef6704ac07112e18dc82b870acf1847e41 (patch) | |
tree | d24a8ce4b0c63dd2e0304340ec33464ee19dd845 /indra/llui/llscrolllistctrl.cpp | |
parent | 2daf175650cdda7cc8f820b6cb17b1475496e7ac (diff) |
put GameControl behind a feature flag
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
-rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 07c4b5681b..ddd1d81cb4 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -1713,6 +1713,16 @@ void LLScrollListCtrl::setEnabled(bool enabled) mCanSelect = enabled; setTabStop(enabled); mScrollbar->setTabStop(!enabled && mScrollbar->getPageSize() < mScrollbar->getDocSize()); + + // when the table is disabled also disable its items + for (LLScrollListItem* item : mItemList) + { + item->setEnabled(enabled); + if (!enabled) + { + item->setSelected(false); + } + } } bool LLScrollListCtrl::handleScrollWheel(S32 x, S32 y, S32 clicks) |