Browse Source

Fix the advanced checkbox in the RC Config portion of the vehicle config.

QGC4.4
Bryant Mairs 11 years ago
parent
commit
91e8195778
  1. 9
      src/ui/QGCVehicleConfig.cc

9
src/ui/QGCVehicleConfig.cc

@ -104,8 +104,13 @@ QGCVehicleConfig::QGCVehicleConfig(QWidget *parent) :
connect(&updateTimer, SIGNAL(timeout()), this, SLOT(updateView())); connect(&updateTimer, SIGNAL(timeout()), this, SLOT(updateView()));
updateTimer.start(); updateTimer.start();
ui->advancedGroupBox->hide(); // Make sure the advanced features match what the checkbox indicates on startup and listen for
connect(ui->advancedCheckBox,SIGNAL(toggled(bool)),ui->advancedGroupBox,SLOT(setShown(bool))); // future changes.
if (!ui->advancedCheckBox->isChecked())
{
ui->advancedGroupBox->hide();
}
connect(ui->advancedCheckBox, SIGNAL(toggled(bool)), ui->advancedGroupBox,SLOT(setVisible(bool)));
} }
void QGCVehicleConfig::rcMenuButtonClicked() void QGCVehicleConfig::rcMenuButtonClicked()
{ {

Loading…
Cancel
Save