diff options
-rw-r--r-- | qt-ui/diveplanner.cpp | 1 | ||||
-rw-r--r-- | qt-ui/mainwindow.cpp | 5 | ||||
-rw-r--r-- | qt-ui/mainwindow.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index c73487048..dd72ce9c5 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -842,6 +842,7 @@ void DivePlannerPointsModel::createTemporaryPlan() #endif if (plannerModel->recalcQ() && !diveplan_empty(&diveplan)) { plan(&diveplan, &cache, &tempDive, stagingDive, isPlanner()); + MainWindow::instance()->setPlanNotes(tempDive->notes); addDecoToModel(); if (mode == ADD || mode == PLAN) { // copy the samples and events, but don't overwrite the cylinders diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 910580e06..dad8e4706 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -415,6 +415,11 @@ void MainWindow::planCreated() refreshDisplay(); } +void MainWindow::setPlanNotes(const char *notes) +{ + ui.divePlanOutput->setText(notes); +} + void MainWindow::on_actionDivePlanner_triggered() { if(!plannerStateClean()) diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 9501e97e6..57c205ba4 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -77,6 +77,7 @@ public: ProfileWidget2 *graphics() const; void setLoadedWithFiles(bool filesFromCommandLine); bool filesFromCommandLine() const; + void setPlanNotes(const char *notes); private slots: /* file menu action */ |