diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-08-15 11:42:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-08-16 16:23:19 -0700 |
commit | ebcfb46d8cec3adcb330cef32b4ff2f1c2d9b8a3 (patch) | |
tree | 086488fc02cdb04ee13abbc42e83a3f24cb8a155 /mobile-widgets/qml | |
parent | 77a11400a1ae2ab70ab5dc776c613c163549e183 (diff) | |
download | subsurface-ebcfb46d8cec3adcb330cef32b4ff2f1c2d9b8a3.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 8 |
1 files 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 } |