From 3e00bac552ac6db12e1498e3177fc2ed8ea0badc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 5 Aug 2014 08:06:17 -0700 Subject: Don't recalculate plan automatically with low GFHigh While it's nice to have immediate response to gradient factor changes, there is an oddity that very low GFHigh values can cause infinite decompression if the last stop is at 6m. Robert fixed this and now errors out of deco after 48 hours, but if the user simply wants to edit their GFHigh from (for example) 75 to 70 and deletes the '5', we really don't want to trigger a recalculation for GFHigh of 7... Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qt-ui/diveplanner.h') diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 26e2943fc..22c599ab1 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -65,7 +65,9 @@ slots: int addStop(int millimeters = 0, int seconds = 0, struct gasmix *gas = 0, int ccpoint = 0, bool entered = true); void addCylinder_clicked(); void setGFHigh(const int gfhigh); + void triggerGFHigh(); void setGFLow(const int ghflow); + void triggerGFLow(); void setSurfacePressure(int pressure); int getSurfacePressure(); void setBottomSac(int sac); @@ -103,6 +105,8 @@ private: QVector backupSamples; // For editing added dives. QVector > oldGases; QDateTime startTime; + int tempGFHigh; + int tempGFLow; }; class DiveHandler : public QObject, public QGraphicsEllipseItem { -- cgit v1.2.3-70-g09d2