Fix unnecessary quotes in viewer channel name
parent
32015972d9
commit
734bee354f
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue