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>
This commit is contained in:
jan Iversen 2019-12-23 13:04:58 +01:00 committed by Dirk Hohndel
parent 0a7e673c5f
commit 316e56f4f7

View file

@ -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)