summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-10-20 13:44:55 +0300
committerGitHub <noreply@github.com>2023-10-20 13:44:55 +0300
commitece46db4b234960b1510c5dcd6d3da5088f8c6f2 (patch)
treea53a6267aab0f2096837bc30eda3ccff8831fde6 /indra
parentb83b4e08482fc2d1aa635aa20a9ffadf21fa17bc (diff)
SL-20380 show group notice button only if user is a member of the group (#465)
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llgrouplist.cpp11
-rw-r--r--indra/newview/skins/default/xui/en/panel_group_list_item_short.xml3
2 files changed, 9 insertions, 5 deletions
diff --git a/indra/newview/llgrouplist.cpp b/indra/newview/llgrouplist.cpp
index d137440547..14310536b2 100644
--- a/indra/newview/llgrouplist.cpp
+++ b/indra/newview/llgrouplist.cpp
@@ -475,14 +475,17 @@ void LLGroupListItem::onMouseEnter(S32 x, S32 y, MASK mask)
{
mInfoBtn->setVisible(true);
mProfileBtn->setVisible(true);
- mNoticesBtn->setVisible(true);
- if (mForAgent && mVisibilityHideBtn)
+ if (mForAgent)
{
LLGroupData agent_gdatap;
if (gAgent.getGroupData(mGroupID, agent_gdatap))
{
- mVisibilityHideBtn->setVisible(agent_gdatap.mListInProfile);
- mVisibilityShowBtn->setVisible(!agent_gdatap.mListInProfile);
+ if (mVisibilityHideBtn)
+ {
+ mVisibilityHideBtn->setVisible(agent_gdatap.mListInProfile);
+ mVisibilityShowBtn->setVisible(!agent_gdatap.mListInProfile);
+ }
+ mNoticesBtn->setVisible(true);
}
}
}
diff --git a/indra/newview/skins/default/xui/en/panel_group_list_item_short.xml b/indra/newview/skins/default/xui/en/panel_group_list_item_short.xml
index 042a5f388b..9e19588033 100644
--- a/indra/newview/skins/default/xui/en/panel_group_list_item_short.xml
+++ b/indra/newview/skins/default/xui/en/panel_group_list_item_short.xml
@@ -64,7 +64,8 @@
follows="right"
image_pressed="Group_Notices"
image_unselected="Group_Notices"
- tab_stop="false"/>
+ tab_stop="false"
+ visible="false"/>
<button
name="visibility_hide_btn"
tool_tip="Hide group on my profile"