1. simon_linden
  2. viewer-rabbit

Commits

leslie_linden  committed bb10752

EXP-752 FIX -- When "View Display Names" is disabled, only my own profile loads, when I click others profiles

Avatar username is now looked up in the name cache when it is blank, which happens when display names are turned off apparently.

Reviewed by Fredrik.

  • Participants
  • Parent commits 98ad3aa
  • Branches default
  • Tags 2.6.6-beta1, DRTVWR-52_2.6.6-beta1

Comments (0)

Files changed (1)

File indra/newview/llavataractions.cpp

View file
 
 static void on_avatar_name_show_profile(const LLUUID& agent_id, const LLAvatarName& av_name)
 {
-	llinfos << "opening web profile for " << av_name.mUsername << llendl;		
-	std::string url = getProfileURL(av_name.mUsername);
+	std::string username = av_name.mUsername;
+	if (username.empty())
+	{
+		username = LLCacheName::buildUsername(av_name.mDisplayName);
+	}
+	
+	llinfos << "opening web profile for " << username << llendl;		
+	std::string url = getProfileURL(username);
 
 	// PROFILES: open in webkit window
 	LLWeb::loadWebURLInternal(url, "", agent_id.asString());