summaryrefslogtreecommitdiff
path: root/indra/newview/llgrouplist.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-05-18 23:53:53 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-05-18 23:53:53 +0300
commit35a5fc74c0df29b496d42e89845d00a366034b68 (patch)
tree7a5aba3a814e1668f2ed9453e25e023ef6d95aba /indra/newview/llgrouplist.cpp
parentde8a61f71a16f950cbf64b5704b9952cb733403e (diff)
SL-15312 Added permission indicators
Diffstat (limited to 'indra/newview/llgrouplist.cpp')
-rw-r--r--indra/newview/llgrouplist.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/indra/newview/llgrouplist.cpp b/indra/newview/llgrouplist.cpp
index ce48ecad63..9c1c32d573 100644
--- a/indra/newview/llgrouplist.cpp
+++ b/indra/newview/llgrouplist.cpp
@@ -439,8 +439,11 @@ BOOL LLGroupListItem::postBuild()
mProfileBtn = getChild<LLButton>("profile_btn");
mProfileBtn->setClickedCallback([this](LLUICtrl *, const LLSD &) { onProfileBtnClick(); });
- mVisibilityBtn = getChild<LLButton>("visibility_btn");
- mVisibilityBtn->setClickedCallback([this](LLUICtrl *, const LLSD &) { onVisibilityBtnClick(); });
+ mVisibilityBtn = findChild<LLButton>("visibility_btn");
+ if (mVisibilityBtn)
+ {
+ mVisibilityBtn->setClickedCallback([this](LLUICtrl *, const LLSD &) { onVisibilityBtnClick(); });
+ }
return TRUE;
}
@@ -460,7 +463,7 @@ void LLGroupListItem::onMouseEnter(S32 x, S32 y, MASK mask)
{
mInfoBtn->setVisible(true);
mProfileBtn->setVisible(true);
- if (mForAgent)
+ if (mForAgent && mVisibilityBtn)
{
mVisibilityBtn->setVisible(true);
}
@@ -473,8 +476,11 @@ void LLGroupListItem::onMouseLeave(S32 x, S32 y, MASK mask)
{
getChildView("hovered_icon")->setVisible( false);
mInfoBtn->setVisible(false);
- mVisibilityBtn->setVisible(false);
mProfileBtn->setVisible(false);
+ if (mVisibilityBtn)
+ {
+ mVisibilityBtn->setVisible(false);
+ }
LLPanel::onMouseLeave(x, y, mask);
}