summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-04-28 10:46:53 -0700
committerJames Cook <james@lindenlab.com>2010-04-28 10:46:53 -0700
commit357dc21c1149228d10f446f774a0549ab698b5e8 (patch)
tree93f825b52625e026d6e7554a268b893fa6272f6a
parent56f5a6909d8a665531e3f6ede380cad57e313728 (diff)
Profile clears old data out of name field when shown
-rw-r--r--indra/newview/llpanelprofileview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llpanelprofileview.cpp b/indra/newview/llpanelprofileview.cpp
index 526db2a192..1afe2b9d44 100644
--- a/indra/newview/llpanelprofileview.cpp
+++ b/indra/newview/llpanelprofileview.cpp
@@ -105,11 +105,13 @@ void LLPanelProfileView::onOpen(const LLSD& key)
if(id.notNull() && getAvatarId() != id)
{
setAvatarId(id);
+
+ // clear name fields, which might have old data
+ getChild<LLUICtrl>("user_name")->setValue( LLSD() );
+ getChild<LLUICtrl>("user_slid")->setValue( LLSD() );
}
// Update the avatar name.
-// gCacheName->get(getAvatarId(), false,
-// boost::bind(&LLPanelProfileView::onNameCache, this, _1, _2, _3));
LLAvatarNameCache::get(getAvatarId(),
boost::bind(&LLPanelProfileView::onAvatarNameCache, this, _1, _2));