Browse Source

Fix for bug involving min/max slider values from metadata

QGC4.4
Michael Carpenter 12 years ago
parent
commit
232c5d5078
  1. 2
      src/ui/designer/QGCParamSlider.cc

2
src/ui/designer/QGCParamSlider.cc

@ -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->editMinSpinBox->setValue(settings.value("QGC_PARAM_SLIDER_MIN").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());
ui->editSelectParamComboBox->setEnabled(true);
ui->editSelectComponentComboBox->setEnabled(true);

Loading…
Cancel
Save