summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 999850183..b5fee2970 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -106,6 +106,8 @@ void DivePlannerPointsModel::setupStartTime()
void DivePlannerPointsModel::loadFromDive(dive *d)
{
+ bool oldRec = recalc;
+ recalc = false;
CylindersModel::instance()->updateDive();
duration_t lasttime = {};
struct gasmix gas;
@@ -118,6 +120,8 @@ void DivePlannerPointsModel::loadFromDive(dive *d)
plannerModel->addStop(s.depth.mm, s.time.seconds, &gas, 0, true);
lasttime = s.time;
}
+ recalc = oldRec;
+ emitDataChanged();
}
// copy the tanks from the current dive, or the default cylinder