summaryrefslogtreecommitdiff
path: root/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-04-19 17:09:37 -0700
committerJames Cook <james@lindenlab.com>2010-04-19 17:09:37 -0700
commitd373dc8782e7085e313b3637c168c87c2b5a71ed (patch)
tree048c48a0507cc543fa5806cfa7b07df9d06873dc /indra/newview/llstartup.cpp
parent16aa2a2a0f29fa927455e616817eef2bedbbf7a7 (diff)
Viewer asks login.cgi if the grid supports display names
If not, turns off display names. Cleaned up name cache reset code. Alphabetized login auth param requests for easier merges going forward.
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r--indra/newview/llstartup.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index 18792950eb..5fe091109f 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -1614,6 +1614,22 @@ bool idle_startup()
LLClassifiedInfo::loadCategories(classified_categories);
}
+ bool use_display_names = false;
+ LLSD display_names = response["display_names"];
+ if (display_names.isDefined())
+ {
+ for(LLSD::array_const_iterator it = display_names.beginArray(),
+ end = display_names.endArray(); it != end; ++it)
+ {
+ LLSD display_name_version = (*it)["version"];
+ if (display_name_version.isDefined()
+ && display_name_version.asInteger() > 0)
+ {
+ use_display_names = true;
+ }
+ }
+ }
+ LLAvatarNameCache::setUseDisplayNames(use_display_names);
// This method MUST be called before gInventory.findCategoryUUIDForType because of
// gInventory.mIsAgentInvUsable is set to true in the gInventory.buildParentChildMap.