diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-19 15:53:36 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-19 21:18:26 -0500 |
commit | d45a991460e3ae95144c240d5d90ec574e0f6e1b (patch) | |
tree | ca4c22dfb9bb712def3f262ba446495120a4dc58 | |
parent | d7630032e29947d4212ac21418040dd724692cba (diff) | |
download | subsurface-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>
-rw-r--r-- | qt-ui/mainwindow.cpp | 3 |
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(); |