summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-05 08:06:17 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-05 08:06:17 -0700
commit3e00bac552ac6db12e1498e3177fc2ed8ea0badc (patch)
tree540482bb30d432f3b430b7d36299456759d6422e /qt-ui/diveplanner.h
parent7d89f5d7ee1df0da3e2cf46c01a645e4ad36c1b0 (diff)
downloadsubsurface-3e00bac552ac6db12e1498e3177fc2ed8ea0badc.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h4
1 files changed, 4 insertions, 0 deletions
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<sample> backupSamples; // For editing added dives.
QVector<QPair<int, int> > oldGases;
QDateTime startTime;
+ int tempGFHigh;
+ int tempGFLow;
};
class DiveHandler : public QObject, public QGraphicsEllipseItem {