From ebcfb46d8cec3adcb330cef32b4ff2f1c2d9b8a3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 15 Aug 2020 11:42:25 -0700 Subject: mobile/dive-edit: fix incorrect handling of multi tank gas mixes A silly copy and paste error caused us to overwrite the gas mixes for all the tanks with the gas mix in the first tank. Fixes #2913 Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetailsEdit.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index f5307786d..c4715cea3 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -84,25 +84,25 @@ Item { } if (usedCyl[1] != null) { usedCyl[1] = cylinderBox1.currentText - usedGas[1] = txtGasMix0.text + usedGas[1] = txtGasMix1.text startpressure[1] = txtStartPressure1.text endpressure[1] = txtEndPressure1.text } if (usedCyl[2] != null) { usedCyl[2] = cylinderBox2.currentText - usedGas[2] = txtGasMix0.text + usedGas[2] = txtGasMix2.text startpressure[2] = txtStartPressure2.text endpressure[2] = txtEndPressure2.text } if (usedCyl[3] != null) { usedCyl[3] = cylinderBox3.currentText - usedGas[3] = txtGasMix0.text + usedGas[3] = txtGasMix3.text startpressure[3] = txtStartPressure3.text endpressure[3] = txtEndPressure3.text } if (usedCyl[4] != null) { usedCyl[4] = cylinderBox4.currentText - usedGas[4] = txtGasMix0.text + usedGas[4] = txtGasMix4.text startpressure[4] = txtStartPressure4.text endpressure[4] = txtEndPressure4.text } -- cgit v1.2.3-70-g09d2