From d45a991460e3ae95144c240d5d90ec574e0f6e1b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 19 Aug 2014 15:53:36 -0500 Subject: [PATCH] Planner: after canceling a plan, redraw the profile While planning we might have made changes to the displayed_dive. So we need to make sure that the profile is redrawn after we cancel a plan (or a re-plan). Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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();