summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2020-06-02 11:52:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-13 13:51:07 -0700
commit3426c6440c0700ca24d34c000f88361a778b0942 (patch)
tree37ee9234c769c5364b5591c74d84bcfea62e2748 /desktop-widgets
parentc29e2f972e7c7e577dfea6b7b6bb673c39eff79e (diff)
downloadsubsurface-3426c6440c0700ca24d34c000f88361a778b0942.tar.gz
Disable SAC factor setting for CCR dives
The SAC factor is only used for minimal gas calculations which don't make sense in the CCR context. Additionally, make bailout stop for at least minimum switch time or problem solving time. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/diveplanner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp
index ce31fb32d..cd0ae2c2d 100644
--- a/desktop-widgets/diveplanner.cpp
+++ b/desktop-widgets/diveplanner.cpp
@@ -606,6 +606,7 @@ void PlannerSettingsWidget::setBackgasBreaks(bool dobreaks)
void PlannerSettingsWidget::setBailoutVisibility(int mode)
{
ui.bailout->setDisabled(!(mode == CCR || mode == PSCR));
+ ui.sacFactor->setDisabled(mode == CCR);
}
PlannerDetails::PlannerDetails(QWidget *parent) : QWidget(parent)