From 316e56f4f7da21e22db867b69bd58504c1976699 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 23 Dec 2019 13:04:58 +0100 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- desktop-widgets/diveplanner.cpp | 3 +-- 1 file changed, 1 insertion(+), 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)