Skip to content
Snippets Groups Projects
Commit de7ca5ab authored by Mike Antipov's avatar Mike Antipov
Browse files

Merge. Note: changeset b048156543b6 (Fixed normal bug EXT - 5104) was...

Merge. Note: changeset b048156543b6 (Fixed normal bug EXT - 5104) was initially commited into default branch by mistake

--HG--
branch : product-engine
parents b0af6b8a 0e035fd9
No related branches found
No related tags found
No related merge requests found
...@@ -224,14 +224,6 @@ void LLPanelIMControlPanel::setSessionId(const LLUUID& session_id) ...@@ -224,14 +224,6 @@ void LLPanelIMControlPanel::setSessionId(const LLUUID& session_id)
childSetEnabled("share_btn", FALSE); childSetEnabled("share_btn", FALSE);
childSetEnabled("teleport_btn", FALSE); childSetEnabled("teleport_btn", FALSE);
childSetEnabled("pay_btn", FALSE); childSetEnabled("pay_btn", FALSE);
getChild<LLTextBox>("avatar_name")->setValue(im_session->mName);
getChild<LLTextBox>("avatar_name")->setToolTip(im_session->mName);
}
else
{
// If the participant is an avatar, fetch the currect name
gCacheName->get(mAvatarID, FALSE, boost::bind(&LLPanelIMControlPanel::nameUpdatedCallback, this, _1, _2, _3, _4));
} }
} }
...@@ -247,19 +239,6 @@ void LLPanelIMControlPanel::changed(U32 mask) ...@@ -247,19 +239,6 @@ void LLPanelIMControlPanel::changed(U32 mask)
} }
} }
void LLPanelIMControlPanel::nameUpdatedCallback(const LLUUID& id, const std::string& first, const std::string& last, BOOL is_group)
{
if ( id == mAvatarID )
{
std::string avatar_name;
avatar_name.assign(first);
avatar_name.append(" ");
avatar_name.append(last);
getChild<LLTextBox>("avatar_name")->setValue(avatar_name);
getChild<LLTextBox>("avatar_name")->setToolTip(avatar_name);
}
}
LLPanelGroupControlPanel::LLPanelGroupControlPanel(const LLUUID& session_id): LLPanelGroupControlPanel::LLPanelGroupControlPanel(const LLUUID& session_id):
mParticipantList(NULL) mParticipantList(NULL)
{ {
......
...@@ -89,9 +89,6 @@ class LLPanelIMControlPanel : public LLPanelChatControlPanel, LLFriendObserver ...@@ -89,9 +89,6 @@ class LLPanelIMControlPanel : public LLPanelChatControlPanel, LLFriendObserver
// LLFriendObserver trigger // LLFriendObserver trigger
virtual void changed(U32 mask); virtual void changed(U32 mask);
protected:
void nameUpdatedCallback(const LLUUID& id, const std::string& first, const std::string& last, BOOL is_group);
private: private:
void onViewProfileButtonClicked(); void onViewProfileButtonClicked();
void onAddFriendButtonClicked(); void onAddFriendButtonClicked();
......
...@@ -11,15 +11,6 @@ ...@@ -11,15 +11,6 @@
name="avatar_icon" name="avatar_icon"
top="-5" top="-5"
width="105"/> width="105"/>
<text
follows="top|left|right"
font="SansSerifLarge"
height="19"
layout="topleft"
name="avatar_name"
use_ellipses="true"
value="Unknown"
width="110" />
<layout_stack <layout_stack
mouse_opaque="false" mouse_opaque="false"
border_size="0" border_size="0"
...@@ -30,7 +21,7 @@ ...@@ -30,7 +21,7 @@
left="5" left="5"
name="button_stack" name="button_stack"
orientation="vertical" orientation="vertical"
top_pad="-5" top_pad="5"
width="105"> width="105">
<layout_panel <layout_panel
mouse_opaque="false" mouse_opaque="false"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment