summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpeople.cpp
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-05-06 14:22:46 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2013-05-06 14:22:46 -0700
commitc451672ee7e3bc8229a3e5cba544c93495147024 (patch)
treeba56f1ad1c5a0cb7d8269d0a315df186158a93e7 /indra/newview/llpanelpeople.cpp
parentf6ad5819c15b1acca1a8b6498bc56adf1c0c3ac9 (diff)
ACME-338 Hide info button for FB only friends: Upon hover of FB only friends the info button and profile button are hidden.
Diffstat (limited to 'indra/newview/llpanelpeople.cpp')
-rw-r--r--indra/newview/llpanelpeople.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp
index b9afe10d84..f7492a51e1 100644
--- a/indra/newview/llpanelpeople.cpp
+++ b/indra/newview/llpanelpeople.cpp
@@ -1641,7 +1641,7 @@ void LLPanelPeople::openFacebookWeb(std::string url)
void LLPanelPeople::showFacebookFriends(const LLSD& friends)
{
mFacebookFriends->clear();
- S32 model_index;
+ LLPersonTabModel::tab_type tab_type;
LLAvatarTracker& avatar_tracker = LLAvatarTracker::instance();
for (LLSD::map_const_iterator i = friends.beginMap(); i != friends.endMap(); ++i)
@@ -1655,16 +1655,16 @@ void LLPanelPeople::showFacebookFriends(const LLSD& friends)
//FB+SL but not SL friend
if(agent_id.notNull() && !avatar_tracker.isBuddy(agent_id))
{
- model_index = 0;
+ tab_type = LLPersonTabModel::FB_SL_NON_SL_FRIEND;
}
//FB only friend
else
{
- model_index = 1;
+ tab_type = LLPersonTabModel::FB_ONLY_FRIEND;
}
//Add to person tab model
- LLPersonTabModel * person_tab_model = dynamic_cast<LLPersonTabModel *>(mPersonFolderView->getPersonTabModelByIndex(model_index));
+ LLPersonTabModel * person_tab_model = dynamic_cast<LLPersonTabModel *>(mPersonFolderView->getPersonTabModelByIndex(tab_type));
if(person_tab_model)
{
addParticipantToModel(person_tab_model, agent_id, name);
@@ -1679,24 +1679,24 @@ void LLPanelPeople::addTestParticipant()
LLPersonTabModel * person_tab_model;
LLUUID agentID;
std::string name;
- S32 model_index;
+ LLPersonTabModel::tab_type tab_type;
for(int i = 0; i < 300; ++i)
{
//Adds FB+SL people that aren't yet SL friends
if(i < 10)
{
- model_index = 0;
+ tab_type = LLPersonTabModel::FB_SL_NON_SL_FRIEND;
agentID = gAgent.getID();
}
//Adds FB only friends
else
{
- model_index = 1;
+ tab_type = LLPersonTabModel::FB_ONLY_FRIEND;
agentID = LLUUID(NULL);
}
- person_tab_model = dynamic_cast<LLPersonTabModel *>(mPersonFolderView->getPersonTabModelByIndex(model_index));
+ person_tab_model = dynamic_cast<LLPersonTabModel *>(mPersonFolderView->getPersonTabModelByIndex(tab_type));
name = prefix + " " + suffix;
addParticipantToModel(person_tab_model, agentID, name);
// Next suffix : Aa, Ab, Ac ... Az, Ba, Bb, Bc ... Bz, Ca, Cb ...