diff options
author | Brad Linden <brad@lindenlab.com> | 2024-06-17 16:02:57 -0700 |
---|---|---|
committer | Brad Linden <brad@lindenlab.com> | 2024-06-17 16:02:57 -0700 |
commit | d0dfffe659b24f5a6bfadc5cc612869e1f08bb93 (patch) | |
tree | 8df3c672aba2f1aca8e9861bcf7626bd8116b107 /indra/llui | |
parent | 5e60392c273f0c9c5efa765a05414c618381780a (diff) | |
parent | 375555012f92c1b836f2d122754f9facd050be62 (diff) |
Merge remote-tracking branch 'origin/develop' into brad/webrtc-voice-develop
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llview.cpp | 10 | ||||
-rw-r--r-- | indra/llui/llview.h | 2 |
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; } |