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:
Stefan Fuchs 2018-07-13 18:46:54 +02:00 committed by Dirk Hohndel
parent daab13eba9
commit c6db1b12f8

View file

@ -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();
}