aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-13 22:42:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-13 22:42:57 -0800
commite32459d3139e5f9815550fe3ebbc6bfff96d5d97 (patch)
tree9c556cfda7eabf4b3bde540ec8201ffc879a5694
parentb60b4ef69d1ae81ace1d4f8ccccdd13aeee01f5a (diff)
downloadsubsurface-e32459d3139e5f9815550fe3ebbc6bfff96d5d97.tar.gz
When adding / planning a dive, reset the dive site manage screen
Otherwise old data is still shown if the user clicks manage. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 6a67befa1..0991a98e1 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -552,6 +552,7 @@ void MainWindow::setupForAddAndPlan(const char *model)
// setup the dive cylinders
DivePlannerPointsModel::instance()->clear();
DivePlannerPointsModel::instance()->setupCylinders();
+ locationInformationWidget()->setLocationId(0);
}
void MainWindow::on_actionReplanDive_triggered()