summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-07-16 19:29:01 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-16 16:07:31 -0700
commit9d4b8c8218aa042b36a32ffd6eb63162285e7fba (patch)
tree785da1a56f6fa8ff385e3062a447f3d49711a91b /qt-ui
parentc34ee894aba385d8666872cf8c6c28d59f257ba4 (diff)
downloadsubsurface-9d4b8c8218aa042b36a32ffd6eb63162285e7fba.tar.gz
Force replot of selected_dive when canceling plan
The profile was still the planner one, so we need to force a replot. Fixes #621 Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 1016aacdf..6e6859e2f 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -397,6 +397,7 @@ void MainWindow::planCanceled()
{
showProfile();
refreshDisplay(false);
+ ui.newProfile->plotDive(get_dive(selected_dive));
}
void MainWindow::planCreated()