summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2018-07-13 18:46:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-13 11:26:28 -0700
commitc6db1b12f89f2f21a3b5c579c9800190b468274e (patch)
tree2d30981d18fff8dfaf6e4038d2182fc5b5002852
parentdaab13eba9924acc69eec3dc23eeb4ef0bfce268 (diff)
downloadsubsurface-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.cpp1
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();
}