diff options
author | James Cook <james@lindenlab.com> | 2010-04-28 10:46:53 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-04-28 10:46:53 -0700 |
commit | 357dc21c1149228d10f446f774a0549ab698b5e8 (patch) | |
tree | 93f825b52625e026d6e7554a268b893fa6272f6a /indra/newview/llpanelprofileview.cpp | |
parent | 56f5a6909d8a665531e3f6ede380cad57e313728 (diff) |
Profile clears old data out of name field when shown
Diffstat (limited to 'indra/newview/llpanelprofileview.cpp')
-rw-r--r-- | indra/newview/llpanelprofileview.cpp | 6 |
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)); |