summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterimcontainer.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <andreylproductengine@lindenlab.com>2015-10-27 14:04:25 +0200
committerAndreyL ProductEngine <andreylproductengine@lindenlab.com>2015-10-27 14:04:25 +0200
commiteccafc5c405e7e3727aa5b793ff508f34afd7648 (patch)
treeb49394a1467bf51d9bbd965b8baa53d4b444b3a3 /indra/newview/llfloaterimcontainer.cpp
parent7f39e2583ffffee5866663ebf8798f393fc67570 (diff)
MAINT-5758 FIXED "Ban Member" from the group chatters list context menu
is greyed out once you have performed a ban, until you load the group members list from group info.
Diffstat (limited to 'indra/newview/llfloaterimcontainer.cpp')
-rwxr-xr-xindra/newview/llfloaterimcontainer.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/indra/newview/llfloaterimcontainer.cpp b/indra/newview/llfloaterimcontainer.cpp
index 0a5a6e8e13..91a0af3e8d 100755
--- a/indra/newview/llfloaterimcontainer.cpp
+++ b/indra/newview/llfloaterimcontainer.cpp
@@ -1925,19 +1925,17 @@ bool LLFloaterIMContainer::canBanSelectedMember(const LLUUID& participant_uuid)
if (gdatap->isRoleMemberDataComplete())
{
- if (!gdatap->mMembers.size())
- {
- return false;
- }
-
- LLGroupMgrGroupData::member_list_t::iterator mi = gdatap->mMembers.find((participant_uuid));
- if (mi != gdatap->mMembers.end())
- {
- LLGroupMemberData* member_data = (*mi).second;
- // Is the member an owner?
- if (member_data && member_data->isInRole(gdatap->mOwnerRole))
+ if (gdatap->mMembers.size())
+ {
+ LLGroupMgrGroupData::member_list_t::iterator mi = gdatap->mMembers.find((participant_uuid));
+ if (mi != gdatap->mMembers.end())
{
- return false;
+ LLGroupMemberData* member_data = (*mi).second;
+ // Is the member an owner?
+ if (member_data && member_data->isInRole(gdatap->mOwnerRole))
+ {
+ return false;
+ }
}
}
}