mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
77a11400a1
commit
ebcfb46d8c
1 changed files with 4 additions and 4 deletions
|
@ -84,25 +84,25 @@ Item {
|
||||||
}
|
}
|
||||||
if (usedCyl[1] != null) {
|
if (usedCyl[1] != null) {
|
||||||
usedCyl[1] = cylinderBox1.currentText
|
usedCyl[1] = cylinderBox1.currentText
|
||||||
usedGas[1] = txtGasMix0.text
|
usedGas[1] = txtGasMix1.text
|
||||||
startpressure[1] = txtStartPressure1.text
|
startpressure[1] = txtStartPressure1.text
|
||||||
endpressure[1] = txtEndPressure1.text
|
endpressure[1] = txtEndPressure1.text
|
||||||
}
|
}
|
||||||
if (usedCyl[2] != null) {
|
if (usedCyl[2] != null) {
|
||||||
usedCyl[2] = cylinderBox2.currentText
|
usedCyl[2] = cylinderBox2.currentText
|
||||||
usedGas[2] = txtGasMix0.text
|
usedGas[2] = txtGasMix2.text
|
||||||
startpressure[2] = txtStartPressure2.text
|
startpressure[2] = txtStartPressure2.text
|
||||||
endpressure[2] = txtEndPressure2.text
|
endpressure[2] = txtEndPressure2.text
|
||||||
}
|
}
|
||||||
if (usedCyl[3] != null) {
|
if (usedCyl[3] != null) {
|
||||||
usedCyl[3] = cylinderBox3.currentText
|
usedCyl[3] = cylinderBox3.currentText
|
||||||
usedGas[3] = txtGasMix0.text
|
usedGas[3] = txtGasMix3.text
|
||||||
startpressure[3] = txtStartPressure3.text
|
startpressure[3] = txtStartPressure3.text
|
||||||
endpressure[3] = txtEndPressure3.text
|
endpressure[3] = txtEndPressure3.text
|
||||||
}
|
}
|
||||||
if (usedCyl[4] != null) {
|
if (usedCyl[4] != null) {
|
||||||
usedCyl[4] = cylinderBox4.currentText
|
usedCyl[4] = cylinderBox4.currentText
|
||||||
usedGas[4] = txtGasMix0.text
|
usedGas[4] = txtGasMix4.text
|
||||||
startpressure[4] = txtStartPressure4.text
|
startpressure[4] = txtStartPressure4.text
|
||||||
endpressure[4] = txtEndPressure4.text
|
endpressure[4] = txtEndPressure4.text
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue