diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-13 15:09:35 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2020-05-04 10:42:07 +0200 |
commit | 62cbf26cc8abd9373b72f919bdd50f666318873e (patch) | |
tree | fba4c49daf2385afdf7b7104b943796632268f80 /desktop-widgets/mainwindow.cpp | |
parent | f123972dbf661c051c37387249ab5fb6d83e24fa (diff) | |
download | subsurface-62cbf26cc8abd9373b72f919bdd50f666318873e.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 1e893900b..7b7d3bab3 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -799,9 +799,9 @@ void MainWindow::planCreated() diveList->setFocus(); } -void MainWindow::setPlanNotes() +void MainWindow::setPlanNotes(QString plan) { - plannerDetails->divePlanOutput()->setHtml(displayed_dive.notes); + plannerDetails->divePlanOutput()->setHtml(plan); } void MainWindow::printPlan() |