mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user