summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-08-13 17:33:25 -0700
committerLeyla Farazha <leyla@lindenlab.com>2010-08-13 17:33:25 -0700
commit3a5ef5bd6fa962c2b73baaab7be6099b0caf5665 (patch)
tree85a33cafa94b52ae5fae55e2248d107002491aa8 /indra/newview
parentbc60707968bd8b2cd2941357a6ff653f6ed2d40e (diff)
fixed nametag reverting to legacy name ever 3 minutes
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltoolpie.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp
index 535f41a3aa..809d39885d 100644
--- a/indra/newview/lltoolpie.cpp
+++ b/indra/newview/lltoolpie.cpp
@@ -879,17 +879,20 @@ BOOL LLToolPie::handleTooltipObject( LLViewerObject* hover_object, std::string l
full_name = LLTrans::getString("TooltipPerson");
}
}
- LLAvatarName av_name;
- if (LLAvatarNameCache::useDisplayNames()
- && LLAvatarNameCache::get(hover_object->getID(), &av_name))
+ if (LLAvatarNameCache::useDisplayNames())
{
- final_name = av_name.mDisplayName + " (" + av_name.mUsername + ")";
- }
- else
- {
- final_name = full_name;
+ LLAvatarName av_name;
+ LLAvatarNameCache::get(hover_object->getID(), &av_name);
+ if (!av_name.mDisplayName.empty())
+ {
+ final_name = av_name.mDisplayName + " (" + av_name.mUsername + ")";
+ }
+ else
+ {
+ final_name = full_name;
+ }
}
-
+
// *HACK: We may select this object, so pretend it was clicked
mPick = mHoverPick;
LLInspector::Params p;