fix for normal EXT-2820 [BSI] Functionality loss: Can't open groups from Resident's profile
--HG-- branch : product-enginemaster
parent
9e0e0e4d54
commit
b509e655bd
|
|
@ -100,9 +100,9 @@ public:
|
|||
}
|
||||
if (tokens[1].asString() == "inspect")
|
||||
{
|
||||
LLSD key;
|
||||
key["group_id"] = group_id;
|
||||
LLFloaterReg::showInstance("inspect_group", key);
|
||||
if (group_id.isNull())
|
||||
return true;
|
||||
LLGroupActions::show(group_id);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -522,20 +522,19 @@ void LLPanelAvatarProfile::processGroupProperties(const LLAvatarGroups* avatar_g
|
|||
for(; it_end != it; ++it)
|
||||
{
|
||||
LLAvatarGroups::LLGroupData group_data = *it;
|
||||
|
||||
// Check if there is no duplicates for this group
|
||||
if (std::find(mGroups.begin(), mGroups.end(), group_data.group_name) == mGroups.end())
|
||||
mGroups.push_back(group_data.group_name);
|
||||
mGroups[group_data.group_name] = group_data.group_id;
|
||||
}
|
||||
|
||||
// Creating string, containing group list
|
||||
std::string groups = "";
|
||||
for (group_list_t::const_iterator it = mGroups.begin(); it != mGroups.end(); ++it)
|
||||
for (group_map_t::iterator it = mGroups.begin(); it != mGroups.end(); ++it)
|
||||
{
|
||||
if (it != mGroups.begin())
|
||||
groups += ", ";
|
||||
|
||||
groups += *it;
|
||||
|
||||
std::string group_url="[secondlife:///app/group/" + it->second.asString() + "/about " + it->first + "]";
|
||||
groups += group_url;
|
||||
}
|
||||
|
||||
childSetValue("sl_groups", groups);
|
||||
|
|
|
|||
|
|
@ -192,8 +192,8 @@ protected:
|
|||
|
||||
private:
|
||||
|
||||
typedef std::list<std::string> group_list_t;
|
||||
group_list_t mGroups;
|
||||
typedef std::map< std::string,LLUUID> group_map_t;
|
||||
group_map_t mGroups;
|
||||
|
||||
LLToggleableMenu* mProfileMenu;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue