From 734bee354f187bfa048705ded59dd31984e8ea39 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 29 Jul 2017 00:25:36 +0200 Subject: [PATCH] Fix unnecessary quotes in viewer channel name --- indra/newview/llversioninfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/indra/newview/llversioninfo.cpp b/indra/newview/llversioninfo.cpp index 653d1c432a..d7563cbfe1 100644 --- a/indra/newview/llversioninfo.cpp +++ b/indra/newview/llversioninfo.cpp @@ -159,6 +159,12 @@ const std::string &LLVersionInfo::getChannelAndVersionFS() //static const std::string &LLVersionInfo::getChannel() { + // Above macro hackery results in extra quotes - fix it if it happens + if (LLStringUtil::startsWith(sWorkingChannelName, "\"") && sWorkingChannelName.size() > 2) + { + sWorkingChannelName = sWorkingChannelName.substr(1, sWorkingChannelName.size() - 2); + } + // return sWorkingChannelName; }