From 312b760c5b189d8171fa3cbbe8dda868cffd546d Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 7 May 2021 17:52:30 +0200 Subject: [PATCH] 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 Signed-off-by: Robert C. Helling --- qt-models/diveplannermodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);