summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-04 13:41:50 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-04 13:44:34 -0700
commit714fdc7ced770c16126fadec2b0bf314e9b4a622 (patch)
treee3bc4f77f6964e530307ef04e7997f001a59f545 /qt-ui/mainwindow.h
parentf34e6218a03dd91e831a240da3debb7d861e8603 (diff)
downloadsubsurface-714fdc7ced770c16126fadec2b0bf314e9b4a622.tar.gz
Force TTS/NDL calculation off if things take too long
This is kind of a random cut off, but if plotting the dive takes more than a second and TTS/NDL is on, we force it off. Because the algorithm for that is fundamentally quadratic in nature it can take a VERY long time - getting users to think something is broken. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index 6f352cc74..46f685f1f 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -148,6 +148,7 @@ protected:
public
slots:
+ void turnOffNdlTts();
void readSettings();
void refreshDisplay(bool doRecreateDiveList = true);
void recreateDiveList();