summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBaker Linden <baker@lindenlab.com>2014-04-04 12:30:01 -0700
committerBaker Linden <baker@lindenlab.com>2014-04-04 12:30:01 -0700
commit29ef25f7ba0cfe229d7b91eb8481f6ef1eeb6f8e (patch)
treed652f12594bac7ffef8c263d0cb74393ef64687e /indra
parentaef1cc0576c4bf1e7248f1008a1582771845c59f (diff)
[GroupBan] [MAINT-3810] Viewer crash when inviting nearby agents via right click
- Fixed an issue where residents would be unable to be invited to a group. - Fixed a crash when trying to invite a resident to a group via right-click menu
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelgroupbulk.cpp16
-rwxr-xr-xindra/newview/llpanelgrouproles.cpp1
2 files changed, 8 insertions, 9 deletions
diff --git a/indra/newview/llpanelgroupbulk.cpp b/indra/newview/llpanelgroupbulk.cpp
index 86ac1867df..9d02b9b45a 100644
--- a/indra/newview/llpanelgroupbulk.cpp
+++ b/indra/newview/llpanelgroupbulk.cpp
@@ -299,14 +299,10 @@ void LLPanelGroupBulk::updateGroupName()
void LLPanelGroupBulk::updateGroupData()
{
LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mImplementation->mGroupID);
- if(!gdatap)
+ if(gdatap && gdatap->isGroupPropertiesDataComplete())
{
- LL_WARNS("Groups") << "Unable to get group data for group " << mImplementation->mGroupID << LL_ENDL;
- return;
- }
-
- if(gdatap->isGroupPropertiesDataComplete())
mPendingGroupPropertiesUpdate = false;
+ }
else
{
if(!mPendingGroupPropertiesUpdate)
@@ -316,8 +312,10 @@ void LLPanelGroupBulk::updateGroupData()
}
}
- if(gdatap->isRoleDataComplete())
+ if(gdatap && gdatap->isRoleDataComplete())
+ {
mPendingRoleDataUpdate = false;
+ }
else
{
if(!mPendingRoleDataUpdate)
@@ -327,8 +325,10 @@ void LLPanelGroupBulk::updateGroupData()
}
}
- if(gdatap->isMemberDataComplete())
+ if(gdatap && gdatap->isMemberDataComplete())
+ {
mPendingMemberDataUpdate = false;
+ }
else
{
if(!mPendingMemberDataUpdate)
diff --git a/indra/newview/llpanelgrouproles.cpp b/indra/newview/llpanelgrouproles.cpp
index 5093207c50..881779ca67 100755
--- a/indra/newview/llpanelgrouproles.cpp
+++ b/indra/newview/llpanelgrouproles.cpp
@@ -1015,7 +1015,6 @@ void LLPanelGroupMembersSubTab::handleMemberSelect()
if (role_id.notNull() && (count > 0))
{
can_eject_members = FALSE;
- can_ban_members = FALSE;
if (role_id == gdatap->mOwnerRole)
{
member_is_owner = TRUE;