summaryrefslogtreecommitdiff
path: root/indra/newview/llconversationmodel.cpp
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2012-10-01 14:01:00 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2012-10-01 14:01:00 -0700
commitc179c687db4caba0d88a7be9e04c47d7f0e1952a (patch)
treed0819729d56d5221bb4829f8bf36c9e343ba74c5 /indra/newview/llconversationmodel.cpp
parent8e1a9e2813da6b9d5c17795b375098fb6a386ee1 (diff)
parentd54eded93ba270402349f5f337bbe12339255ece (diff)
merging in latest changes
Diffstat (limited to 'indra/newview/llconversationmodel.cpp')
-rw-r--r--indra/newview/llconversationmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llconversationmodel.cpp b/indra/newview/llconversationmodel.cpp
index f587ef8428..265f77365f 100644
--- a/indra/newview/llconversationmodel.cpp
+++ b/indra/newview/llconversationmodel.cpp
@@ -294,8 +294,8 @@ void LLConversationItemParticipant::buildContextMenu(LLMenuGL& menu, U32 flags)
void LLConversationItemParticipant::onAvatarNameCache(const LLAvatarName& av_name)
{
- mName = av_name.mUsername;
- mDisplayName = av_name.mDisplayName;
+ mName = (av_name.mUsername.empty() ? av_name.mDisplayName : av_name.mUsername);
+ mDisplayName = (av_name.mDisplayName.empty() ? av_name.mUsername : av_name.mDisplayName);
mNeedsRefresh = true;
if (mParent)
{