summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofileview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanelprofileview.cpp')
-rw-r--r--indra/newview/llpanelprofileview.cpp29
1 files changed, 5 insertions, 24 deletions
diff --git a/indra/newview/llpanelprofileview.cpp b/indra/newview/llpanelprofileview.cpp
index cd18dc4462..18184a6476 100644
--- a/indra/newview/llpanelprofileview.cpp
+++ b/indra/newview/llpanelprofileview.cpp
@@ -41,10 +41,10 @@
static LLRegisterPanelClassWrapper<LLPanelProfileView> t_panel_target_profile("panel_profile_view");
static std::string PANEL_NOTES = "panel_notes";
+static const std::string PANEL_PROFILE = "panel_profile";
LLPanelProfileView::LLPanelProfileView()
: LLPanelProfile()
-, mCacheNameCallbackConnected(false)
{
}
@@ -66,21 +66,6 @@ void LLPanelProfileView::onOpen(const LLSD& key)
}
LLPanelProfile::onOpen(key);
-
- // *HACK Profile View is created before gCacheName, as a result we can't call addObserver()
- // in postBuild() and have to connect callback here.
- // This will call addObserver() once per LLPanelProfileView instance.
- if(!mCacheNameCallbackConnected)
- {
- gCacheName->addObserver(boost::bind(&LLPanelProfileView::cacheNameCallback, this, _1, _2, _3, _4));
- mCacheNameCallbackConnected = true;
- }
-
- // getFullName() will return "(Loading...)" for non cached names,
- // in this case cacheNameCallback() will resolve the name.
- std::string full_name;
- gCacheName->getFullName(getAvatarId(),full_name);
- childSetValue("user_name",full_name);
}
BOOL LLPanelProfileView::postBuild()
@@ -88,6 +73,10 @@ BOOL LLPanelProfileView::postBuild()
LLPanelProfile::postBuild();
getTabContainer()[PANEL_NOTES] = getChild<LLPanelAvatarNotes>(PANEL_NOTES);
+
+ //*TODO remove this, according to style guide we don't use status combobox
+ getTabContainer()[PANEL_PROFILE]->childSetVisible("online_me_status_text", FALSE);
+ getTabContainer()[PANEL_PROFILE]->childSetVisible("status_combo", FALSE);
childSetCommitCallback("back",boost::bind(&LLPanelProfileView::onBackBtnClick,this),NULL);
@@ -105,11 +94,3 @@ void LLPanelProfileView::onBackBtnClick()
parent->openPreviousPanel();
}
}
-
-void LLPanelProfileView::cacheNameCallback(const LLUUID& id, const std::string& first_name, const std::string& last_name, BOOL is_group)
-{
- if(getAvatarId() == id)
- {
- childSetValue("user_name", first_name + " " + last_name);
- }
-}