summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-08-24 15:12:56 -0700
committerLeyla Farazha <leyla@lindenlab.com>2010-08-24 15:12:56 -0700
commit54b9992eaefe2b68d16a6264c1901f12612e99dc (patch)
tree33e792f9bcd3db3dacd5b6166b358ce100edf011 /indra
parent5fab3253f941c0e25b4b86e29ab7a34c4325f825 (diff)
remove parens from mini-inspector if not using display names
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lltoolpie.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp
index 5e2088884d..c806c71a52 100644
--- a/indra/newview/lltoolpie.cpp
+++ b/indra/newview/lltoolpie.cpp
@@ -881,7 +881,8 @@ BOOL LLToolPie::handleTooltipObject( LLViewerObject* hover_object, std::string l
}
LLAvatarName av_name;
- if (LLAvatarNameCache::get(hover_object->getID(), &av_name))
+ if (LLAvatarNameCache::useDisplayNames() &&
+ LLAvatarNameCache::get(hover_object->getID(), &av_name))
{
final_name = av_name.mDisplayName + " (" + av_name.mUsername + ")";
}