aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2021-05-07 17:52:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-05-07 11:20:30 -0700
commit312b760c5b189d8171fa3cbbe8dda868cffd546d (patch)
treecfa2201639c2da434077c226af174559c8e4b06f /qt-models
parent09bbd846da2289a49e566c6b2742b62d9d7bdc79 (diff)
downloadsubsurface-312b760c5b189d8171fa3cbbe8dda868cffd546d.tar.gz
Planner: Update notes when not computing variations
A change not to compute plan variations when not needed was too aggressive and eliminated also the signal to update the notes. Bug fixed. Reported-by: Jay Anchor <jay.anchor-subsurface@e257.fi> Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/diveplannermodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 99174bbae..4f4a86cdc 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -1088,8 +1088,9 @@ void DivePlannerPointsModel::updateDiveProfile()
computeVariations(plan_copy, &plan_deco_state);
#endif
final_deco_state = plan_deco_state;
- emit calculatedPlanNotes(QString(d->notes));
}
+ emit calculatedPlanNotes(QString(d->notes));
+
// throw away the cache
free(cache);