This commit is contained in:
bsongis
2014-07-27 17:37:39 +02:00
parent 92f2c48de9
commit adadbe06ad
+2 -2
View File
@@ -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();