mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 06:13:24 +00:00
Adds the first DiveNode at 5meters / 10minutes when clicking on plus
Adds the first DiveNode at 5m / 10 minutes when clicking on the plus button on the DiveNotes Table. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2235da57a7
commit
1ee08005b2
1 changed files with 3 additions and 0 deletions
|
@ -1154,6 +1154,9 @@ int DivePlannerPointsModel::addStop(int milimeters, int minutes, int o2, int he,
|
|||
struct divedatapoint& t = divepoints.last();
|
||||
milimeters = t.depth;
|
||||
minutes = t.time + 600; // 10 minutes.
|
||||
} else if (minutes == 0 && milimeters == 0 && row == 0) {
|
||||
milimeters = M_OR_FT(5, 15); // 5m / 15ft
|
||||
minutes = 600; // 10 min
|
||||
}
|
||||
if (o2 != -1)
|
||||
if (!addGas(o2, he))
|
||||
|
|
Loading…
Add table
Reference in a new issue