diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 4 | ||||
-rw-r--r-- | qt-models/diveplannermodel.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 5d0375e69..6bb560098 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -985,7 +985,7 @@ void DivePlannerPointsModel::createTemporaryPlan() computeVariations(plan_copy, &plan_deco_state); #endif final_deco_state = plan_deco_state; - emit calculatedPlanNotes(); + emit calculatedPlanNotes(QString(displayed_dive.notes)); } // throw away the cache free(cache); @@ -1170,7 +1170,7 @@ void DivePlannerPointsModel::computeVariationsDone(QString variations) QString notes = QString(displayed_dive.notes); free(displayed_dive.notes); displayed_dive.notes = copy_qstring(notes.replace("VARIATIONS", variations)); - emit calculatedPlanNotes(); + emit calculatedPlanNotes(QString(displayed_dive.notes)); } void DivePlannerPointsModel::createPlan(bool replanCopy) diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h index 24b153f0e..08ed8fd79 100644 --- a/qt-models/diveplannermodel.h +++ b/qt-models/diveplannermodel.h @@ -118,7 +118,7 @@ signals: void cylinderModelEdited(); void startTimeChanged(QDateTime); void recreationChanged(bool); - void calculatedPlanNotes(); + void calculatedPlanNotes(QString); void variationsComputed(QString); private: |