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:
Tomaz Canabrava 2013-11-14 18:51:08 -02:00 committed by Dirk Hohndel
parent 2235da57a7
commit 1ee08005b2

View file

@ -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))