From d548067dce6d1cd9d9e942d5f72f317a0eff3315 Mon Sep 17 00:00:00 2001 From: Liny Date: Sun, 12 Dec 2021 19:19:18 -0800 Subject: [PATCH] Make disabled lists not jump to the top on clicking an element in them. --- indra/llui/llscrolllistctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index f1501cbd73..8407b30e4c 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -3709,7 +3709,8 @@ BOOL LLScrollListCtrl::operateOnAll(EOperation op) void LLScrollListCtrl::setFocus(BOOL b) { // for tabbing into pristine scroll lists (Finder) - if (!getFirstSelected()) + //if (!getFirstSelected()) + if (!getFirstSelected() && !getEnabled()) // make disabled lists not jump to the top on clicking an element in them. { selectFirstItem(); //onCommit(); // SJB: selectFirstItem() will call onCommit() if appropriate