[qt] Fix for ignoring function's val with 'warn_unused_result'

This commit is contained in:
Olga Khlopkova 2020-11-10 10:10:18 +03:00 committed by ldo2
parent 1c1770cbb8
commit 5dfff4ddc4

View file

@ -32,8 +32,10 @@ std::string const RoutingSettings::kRouterTypeCachedSettings = "router_type_desk
bool RoutingSettings::TurnsEnabled()
{
bool enabled = false;
settings::Get(kShowTurnsSettings, enabled);
return enabled;
if (settings::Get(kShowTurnsSettings, enabled))
return enable;
return false;
}
// static