diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-13 22:42:57 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-13 22:42:57 -0800 |
commit | e32459d3139e5f9815550fe3ebbc6bfff96d5d97 (patch) | |
tree | 9c556cfda7eabf4b3bde540ec8201ffc879a5694 | |
parent | b60b4ef69d1ae81ace1d4f8ccccdd13aeee01f5a (diff) | |
download | subsurface-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.cpp | 1 |
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() |