aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-23 13:04:58 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-26 08:39:49 -0800
commit316e56f4f7da21e22db867b69bd58504c1976699 (patch)
treed91e9819331187672eec04aa2e987ab5424573ca
parent0a7e673c5f4a0268f2969a905646669850dc14e7 (diff)
downloadsubsurface-316e56f4f7da21e22db867b69bd58504c1976699.tar.gz
desktop-widgets: replace vars. qPrefDivePlanner -> plannerShared
change local doo2breaks to plannerShared and update connect. change signals to slots in plannerShared Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--desktop-widgets/diveplanner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp
index 3ad76114e..d31fc7ffb 100644
--- a/desktop-widgets/diveplanner.cpp
+++ b/desktop-widgets/diveplanner.cpp
@@ -648,8 +648,7 @@ void PlannerSettingsWidget::setBestmixEND(int depth)
void PlannerSettingsWidget::setBackgasBreaks(bool dobreaks)
{
- qPrefDivePlanner::instance()->set_doo2breaks(dobreaks);
- plannerModel->emitDataChanged();
+ plannerShared::set_doo2breaks(dobreaks);
}
void PlannerSettingsWidget::setO2narcotic(bool o2narcotic)