mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:23:25 +00:00
When entering a new point, pick the previous gas by default
This is much more useful than always picking air. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0a8892379d
commit
cd1149e57f
1 changed files with 4 additions and 1 deletions
|
@ -1169,7 +1169,10 @@ int DivePlannerPointsModel::addStop(int milimeters, int minutes, int o2, int he,
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (row > 1 && o2 == -1) { // this means "take the current gas"
|
||||
o2 = divepoints.at(row - 1).o2;
|
||||
he = divepoints.at(row - 1).he;
|
||||
}
|
||||
// add the new stop
|
||||
beginInsertRows(QModelIndex(), row, row);
|
||||
divedatapoint point;
|
||||
|
|
Loading…
Add table
Reference in a new issue