mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
planner: remove getRebreatherMode() from planner-model
There was this completely weird loop that the planner-widget would call the planner-model to get the current rebreather mode, which would then access the dive in the planner widget. Just keep those things in the planner widgets. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1fb9d6236b
commit
e70e3082c9
4 changed files with 17 additions and 16 deletions
|
@ -542,11 +542,6 @@ void DivePlannerPointsModel::setRebreatherMode(int mode)
|
|||
emitDataChanged();
|
||||
}
|
||||
|
||||
divemode_t DivePlannerPointsModel::getRebreatherMode() const
|
||||
{
|
||||
return d ? d->dc.divemode : OC;
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setVpmbConservatism(int level)
|
||||
{
|
||||
if (diveplan.vpmb_conservatism != level) {
|
||||
|
|
|
@ -63,7 +63,6 @@ public:
|
|||
|
||||
void loadFromDive(dive *d, int dcNr);
|
||||
void addStop(int millimeters, int seconds);
|
||||
divemode_t getRebreatherMode() const;
|
||||
public
|
||||
slots:
|
||||
void addDefaultStop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue