From 1ee08005b2d98e895b173cbe77d5548383b82106 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 14 Nov 2013 18:51:08 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 2efc035da..1c8448394 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -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)) -- cgit v1.2.3-70-g09d2