Remove unnecessary cached control

meow-7.2.2
Ansariel 2017-01-10 09:38:38 +01:00
parent 797243378c
commit d35b84bf38
1 changed files with 1 additions and 3 deletions

View File

@ -1201,18 +1201,16 @@ void LLTeleportHistoryPanel::onCollapseAllFolders()
// <FS:Beq> [timezone support for teleport history]
void LLTeleportHistoryPanel::onTimeZoneChecked(const LLSD& userdata)
{
static LLCachedControl<std::string> sFSTPHistoryTZ(gSavedSettings, "FSTPHistoryTZ");
gSavedSettings.setString("FSTPHistoryTZ", userdata.asString());
onTeleportHistoryChange(-1); // force recreate all
}
bool LLTeleportHistoryPanel::isTimeZoneChecked(const LLSD& userdata)
{
static LLCachedControl<std::string> sFSTPHistoryTZ(gSavedSettings, "FSTPHistoryTZ");
const std::string zone_string = userdata.asString();
return ( sFSTPHistoryTZ() == zone_string);
return (sFSTPHistoryTZ() == zone_string);
}
// </FS:Beq>