summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 5a1a4b8258..2d8e94fdda 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -3746,6 +3746,13 @@ std::string LLAppViewer::getViewerInfoString(bool default_string) const
{
args[ii->first] = LLTrans::getString("none_text", default_string);
}
+ else if (ii->second.isBoolean())
+ {
+ // LLSD intentionally renders false as an empty string to
+ // preserve string-to-boolean round trips. Viewer info is
+ // human-readable, so show both boolean states explicitly.
+ args[ii->first] = ii->second.asBoolean() ? "true" : "false";
+ }
else
{
// don't forget to render value asString()