summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorcosmic-linden <111533034+cosmic-linden@users.noreply.github.com>2024-06-13 12:51:39 -0700
committerGitHub <noreply@github.com>2024-06-13 12:51:39 -0700
commit0ed3483b338376b7a18a05efae6fbc1d4b5db870 (patch)
tree72851774ff2b1814a943f64df338ec824bb30643 /indra/llui
parent162c87a0a852952cf8dca05d37211403612a9933 (diff)
parent74765c15731e6b6859b627b898472299ed351e0d (diff)
Merge pull request #1743 from secondlife/v-1475
secondlife/viewer#1475: Fix Terrain tab controls no longer disabled when insufficient permissions
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llview.cpp10
-rw-r--r--indra/llui/llview.h2
2 files changed, 10 insertions, 2 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp
index 28283964e2..441b7d6a6c 100644
--- a/indra/llui/llview.cpp
+++ b/indra/llui/llview.cpp
@@ -591,12 +591,20 @@ void LLView::deleteAllChildren()
updateBoundingRect();
}
-void LLView::setAllChildrenEnabled(bool b)
+void LLView::setAllChildrenEnabled(bool b, bool recursive /*= false*/)
{
for (LLView* viewp : mChildList)
{
viewp->setEnabled(b);
}
+
+ if (recursive)
+ {
+ for (LLView* viewp : mChildList)
+ {
+ viewp->setAllChildrenEnabled(b, recursive);
+ }
+ }
}
// virtual
diff --git a/indra/llui/llview.h b/indra/llui/llview.h
index 3af748dda6..3ce7243370 100644
--- a/indra/llui/llview.h
+++ b/indra/llui/llview.h
@@ -287,7 +287,7 @@ public:
// children, etc.
virtual void deleteAllChildren();
- void setAllChildrenEnabled(bool b);
+ void setAllChildrenEnabled(bool b, bool recursive = false);
virtual void setVisible(bool visible);
void setVisibleDirect(bool visible) { mVisible = visible; }