diff --git a/companion/src/modeledit/flightmodes.cpp b/companion/src/modeledit/flightmodes.cpp index 660499146..911dec37a 100644 --- a/companion/src/modeledit/flightmodes.cpp +++ b/companion/src/modeledit/flightmodes.cpp @@ -158,11 +158,13 @@ FlightMode::FlightMode(QWidget * parent, ModelData & model, int phaseIdx, Genera gvLayout->addWidget(gvValues[i], i, col++, 1, 1); // Popups - gvPopups[i] = new QCheckBox(ui->gvGB); - gvPopups[i]->setProperty("index", i); - gvPopups[i]->setText(tr("Popup enabled")); - connect(gvPopups[i], SIGNAL(toggled(bool)), this, SLOT(phaseGVPopupToggled(bool))); - gvLayout->addWidget(gvPopups[i], i, col++, 1, 1); + if (IS_TARANIS(GetEepromInterface()->getBoard())) { + gvPopups[i] = new QCheckBox(ui->gvGB); + gvPopups[i]->setProperty("index", i); + gvPopups[i]->setText(tr("Popup enabled")); + connect(gvPopups[i], SIGNAL(toggled(bool)), this, SLOT(phaseGVPopupToggled(bool))); + gvLayout->addWidget(gvPopups[i], i, col++, 1, 1); + } } } else { @@ -209,8 +211,10 @@ void FlightMode::update() idx = phasegvar->gvars[i]; gvValues[i]->setDisabled(true); } - gvValues[i]->setValue(phasegvar->gvars[i]); - gvPopups[i]->setChecked(model.gvars_popups[i]); + if (IS_TARANIS(GetEepromInterface()->getBoard())) { + gvValues[i]->setValue(phasegvar->gvars[i]); + gvPopups[i]->setChecked(model.gvars_popups[i]); + } } for (int i=0; i