diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2018-07-13 18:46:54 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-13 11:26:28 -0700 |
commit | c6db1b12f89f2f21a3b5c579c9800190b468274e (patch) | |
tree | 2d30981d18fff8dfaf6e4038d2182fc5b5002852 | |
parent | daab13eba9924acc69eec3dc23eeb4ef0bfce268 (diff) | |
download | subsurface-c6db1b12f89f2f21a3b5c579c9800190b468274e.tar.gz |
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>
-rw-r--r-- | qt-models/diveplannermodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 435571e46..52c87071e 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -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(); } |