summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index b74c34723..401c114f8 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -395,7 +395,10 @@ bool MainWindow::plannerStateClean()
void MainWindow::planCanceled()
{
+ // while planning we might have modified the displayed_dive
+ // let's refresh what's shown on the profile
showProfile();
+ ui.newProfile->replot();
refreshDisplay(false);
ui.newProfile->plotDive(get_dive(selected_dive));
DivePictureModel::instance()->updateDivePictures();