mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Desktop: Fix planner for CCR dives with first segment on OC.
Fix a bug that results in dive plans outside of the configured risk profile being produced when planning a CCR dive with the first segment set to open circuit. `d->dc.divemode` is already set in `setRebreatherMode`, which is sufficient, and congruent with the setting of other dive parameters, like `diveplan.gflow`. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
cb5bc68c59
commit
9aed18451a
1 changed files with 0 additions and 2 deletions
|
@ -383,8 +383,6 @@ bool DivePlannerPointsModel::setData(const QModelIndex &index, const QVariant &v
|
|||
p.divemode = (enum divemode_t) value.toInt();
|
||||
p.setpoint = p.divemode == CCR ? prefs.defaultsetpoint : 0;
|
||||
}
|
||||
if (index.row() == 0)
|
||||
d->dc.divemode = (enum divemode_t) value.toInt();
|
||||
break;
|
||||
}
|
||||
editStop(index.row(), p);
|
||||
|
|
Loading…
Reference in a new issue