Skip to content
Snippets Groups Projects
Commit 232c5d50 authored by Michael Carpenter's avatar Michael Carpenter
Browse files

Fix for bug involving min/max slider values from metadata

parent 1516ebe8
No related branches found
No related tags found
No related merge requests found
...@@ -531,6 +531,8 @@ void QGCParamSlider::readSettings(const QSettings& settings) ...@@ -531,6 +531,8 @@ void QGCParamSlider::readSettings(const QSettings& settings)
ui->editSelectComponentComboBox->addItem(tr("Component #%1").arg(settings.value("QGC_PARAM_SLIDER_COMPONENTID").toInt()), settings.value("QGC_PARAM_SLIDER_COMPONENTID").toInt()); ui->editSelectComponentComboBox->addItem(tr("Component #%1").arg(settings.value("QGC_PARAM_SLIDER_COMPONENTID").toInt()), settings.value("QGC_PARAM_SLIDER_COMPONENTID").toInt());
ui->editMinSpinBox->setValue(settings.value("QGC_PARAM_SLIDER_MIN").toFloat()); ui->editMinSpinBox->setValue(settings.value("QGC_PARAM_SLIDER_MIN").toFloat());
ui->editMaxSpinBox->setValue(settings.value("QGC_PARAM_SLIDER_MAX").toFloat()); ui->editMaxSpinBox->setValue(settings.value("QGC_PARAM_SLIDER_MAX").toFloat());
parameterMax = ui->editMaxSpinBox->value();
parameterMin = ui->editMinSpinBox->value();
showInfo(settings.value("QGC_PARAM_SLIDER_DISPLAY_INFO", true).toBool()); showInfo(settings.value("QGC_PARAM_SLIDER_DISPLAY_INFO", true).toBool());
ui->editSelectParamComboBox->setEnabled(true); ui->editSelectParamComboBox->setEnabled(true);
ui->editSelectComponentComboBox->setEnabled(true); ui->editSelectComponentComboBox->setEnabled(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment