Fix unnecessary quotes in viewer channel name

master
Ansariel 2017-07-29 00:25:36 +02:00
parent 32015972d9
commit 734bee354f
1 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,12 @@ const std::string &LLVersionInfo::getChannelAndVersionFS()
//static
const std::string &LLVersionInfo::getChannel()
{
// <FS:Ansariel> 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);
}
// </FS:Ansariel>
return sWorkingChannelName;
}