Fixes #1559
This commit is contained in:
@@ -315,10 +315,10 @@ void FlightModePanel::phaseGVUse_currentIndexChanged(int index)
|
|||||||
QComboBox *comboBox = qobject_cast<QComboBox*>(sender());
|
QComboBox *comboBox = qobject_cast<QComboBox*>(sender());
|
||||||
int gvar = comboBox->property("index").toInt();
|
int gvar = comboBox->property("index").toInt();
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
phase.gvars[gvar]=0;
|
phase.gvars[gvar] = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
phase.gvars[gvar] = 1024+index+(index>phaseIdx?1:0);
|
phase.gvars[gvar] = 1024 + index;
|
||||||
}
|
}
|
||||||
update();
|
update();
|
||||||
emit modified();
|
emit modified();
|
||||||
|
|||||||
Reference in New Issue
Block a user