Parameters: removed trailing 0 for double/float parameters, to avoid serializing with them (so that we don't have the 0.0 != 0 when loading parameters from database)

This commit is contained in:
matlabbe
2016-06-16 15:34:27 -04:00
parent 62a982ef9f
commit d03b54d95a
3 changed files with 23 additions and 21 deletions

View File

@@ -1451,9 +1451,7 @@ void PreferencesDialog::loadConfigFrom()
QString path = QFileDialog::getOpenFileName(this, tr("Load settings..."), this->getWorkingDirectory(), "*.ini");
if(!path.isEmpty())
{
_ui->checkBox_useOdomFeatures->blockSignals(true);
this->readSettings(path);
_ui->checkBox_useOdomFeatures->blockSignals(false);
}
}
@@ -2998,7 +2996,9 @@ void PreferencesDialog::setParameter(const std::string & key, const std::string
}
else if(check)
{
_ui->checkBox_useOdomFeatures->blockSignals(true);
check->setChecked(uStr2Bool(value.c_str()));
_ui->checkBox_useOdomFeatures->blockSignals(false);
}
else if(radio)
{