Commit 31e846fb authored by Gus Grubba's avatar Gus Grubba

Make all numeric values default to 1 (as opposed to 0) for the time being.

parent 900ce1ee
...@@ -34,7 +34,9 @@ AirMapRuleFeature::AirMapRuleFeature(airmap::RuleSet::Feature feature, QObject* ...@@ -34,7 +34,9 @@ AirMapRuleFeature::AirMapRuleFeature(airmap::RuleSet::Feature feature, QObject*
_value = settings.value(name(), false); _value = settings.value(name(), false);
break;; break;;
case RuleSet::Feature::Type::floating_point: case RuleSet::Feature::Type::floating_point:
_value = settings.value(name(), 0.0f); //_value = settings.value(name(), 0.0f);
//-- Default to 1 for now
_value = settings.value(name(), 1.0f);
break;; break;;
case RuleSet::Feature::Type::string: case RuleSet::Feature::Type::string:
_value = settings.value(name(), QString()); _value = settings.value(name(), QString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment