Fix layering violations in DivePlannerPointsModel.

Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
Michael Keller 2024-08-23 10:30:15 +12:00
parent 2d8e343221
commit 14b9074f40
4 changed files with 11 additions and 7 deletions

View file

@ -677,7 +677,9 @@ void PlannerWidgets::printDecoPlan()
void PlannerWidgets::setDiveMode(int mode)
{
DivePlannerPointsModel::instance()->setDiveMode(mode);
planned_dive->get_dc(dcNr)->divemode = (divemode_t)mode;
DivePlannerPointsModel::instance()->cylindersChanged();
plannerWidget.setColumnVisibility(mode);
plannerSettingsWidget.setBailoutVisibility(mode);
}