From 357dc21c1149228d10f446f774a0549ab698b5e8 Mon Sep 17 00:00:00 2001 From: James Cook Date: Wed, 28 Apr 2010 10:46:53 -0700 Subject: Profile clears old data out of name field when shown --- indra/newview/llpanelprofileview.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'indra') 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("user_name")->setValue( LLSD() ); + getChild("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)); -- cgit v1.2.3