summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp4
-rw-r--r--desktop-widgets/mainwindow.h2
2 files changed, 3 insertions, 3 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()
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h
index 22cf1c828..7f8e17196 100644
--- a/desktop-widgets/mainwindow.h
+++ b/desktop-widgets/mainwindow.h
@@ -165,7 +165,7 @@ slots:
void planCanceled();
void planCreated();
void setEnabledToolbar(bool arg1);
- void setPlanNotes();
+ void setPlanNotes(QString plan);
// Some shortcuts like "change DC" or "copy/paste dive components"
// should only be enabled when the profile's visible.
void disableShortcuts(bool disablePaste = true);