mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
planner: send plan in calculatedPlanNotes
Thus, the MainWindow doesn't have to extract the plan from displayed_dive. This is a tiny step in an attempt to detangle the interfaces. The bigger goal will be to make displayed_dive local to the planner. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f123972dbf
commit
62cbf26cc8
4 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue