Input and mix source list use filter to remove none entry

This commit is contained in:
elecpower
2020-09-20 07:43:54 +10:00
parent 4feee9c665
commit 1b40c69593
4 changed files with 17 additions and 19 deletions
+1 -2
View File
@@ -47,7 +47,6 @@ MixerDialog::MixerDialog(QWidget *parent, ModelData & model, MixData * mixdata,
ui->sourceCB->setModel(rawSourceModel);
ui->sourceCB->setCurrentIndex(ui->sourceCB->findData(md->srcRaw.toValue()));
ui->sourceCB->removeItem(0);
int limit = firmware->getCapability(OffsetWeight);
@@ -191,7 +190,7 @@ void MixerDialog::valuesChanged()
strcpy(md->name, ui->mixerName->text().toLatin1());
md->flightModes = 0;
for (int i = CPN_MAX_FLIGHT_MODES-1; i >= 0 ; i--) {
for (int i = CPN_MAX_FLIGHT_MODES - 1; i >= 0 ; i--) {
if (!cb_fp[i]->checkState()) {
md->flightModes++;
}