summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-19 15:53:36 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-19 21:18:26 -0500
commitd45a991460e3ae95144c240d5d90ec574e0f6e1b (patch)
treeca4c22dfb9bb712def3f262ba446495120a4dc58 /qt-ui
parentd7630032e29947d4212ac21418040dd724692cba (diff)
downloadsubsurface-d45a991460e3ae95144c240d5d90ec574e0f6e1b.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-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();