summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorleyla_linden <none@none>2010-10-11 14:01:30 -0700
committerleyla_linden <none@none>2010-10-11 14:01:30 -0700
commit1d08fa4cd72c17dfbe7906fa8f5e2bc44d0fb7cd (patch)
treece26ad36a0bfa440643decf1595d16440a35cad4 /indra/newview
parent3059e130984052091cadd92007413df3c8cea07d (diff)
DN-162 Green - shown in local chat after name if View Display Names setting is off with Show User Names setting on.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llchathistory.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index f28e02c66e..378c4358b3 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -367,15 +367,15 @@ public:
user_name->setValue( LLSD(av_name.mDisplayName ) );
user_name->setToolTip( av_name.mUsername );
- if (gSavedSettings.getBOOL("NameTagShowUsernames"))
- {
- LLStyle::Params style_params_name;
- LLColor4 userNameColor = LLUIColorTable::instance().getColor("EmphasisColor");
- style_params_name.color(userNameColor);
- style_params_name.font.name("SansSerifSmall");
- style_params_name.font.style("NORMAL");
- style_params_name.readonly_color(userNameColor);
- user_name->appendText(" - " + av_name.mUsername, FALSE, style_params_name);
+ if (gSavedSettings.getBOOL("NameTagShowUsernames") && LLAvatarNameCache::useDisplayNames())
+ {
+ LLStyle::Params style_params_name;
+ LLColor4 userNameColor = LLUIColorTable::instance().getColor("EmphasisColor");
+ style_params_name.color(userNameColor);
+ style_params_name.font.name("SansSerifSmall");
+ style_params_name.font.style("NORMAL");
+ style_params_name.readonly_color(userNameColor);
+ user_name->appendText(" - " + av_name.mUsername, FALSE, style_params_name);
}
setToolTip( av_name.mUsername );
// name might have changed, update width