Fix dive mode drop-down in planner for re-planned dive
Also populate the DiveTypeSelectionModel with values for re-planned dive. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
daab13eba9
commit
c6db1b12f8
@ -141,6 +141,7 @@ void DivePlannerPointsModel::loadFromDive(dive *d)
|
||||
if (!hasMarkedSamples && !dc->last_manual_time.seconds)
|
||||
addStop(0, d->dc.duration.seconds,cylinderid, last_sp.mbar, true, current_divemode);
|
||||
recalc = oldRec;
|
||||
DiveTypeSelectionModel::instance()->repopulate();
|
||||
emitDataChanged();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user