summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-14 11:56:33 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-14 11:56:33 -0800
commitcf07e3a79bc928c132b624ab916c326b8d0c8e34 (patch)
tree3699d9fd77befed19322c8c412b1d4235f340fe7 /qt-ui
parent92f514b081feeaef0ba2f6d6f70fef84e3995e5a (diff)
downloadsubsurface-cf07e3a79bc928c132b624ab916c326b8d0c8e34.tar.gz
When cleaning up the empty screen, also clean up dive sites
Otherwise we are using stale pointers in the displayed_dive_site global. 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 59e664db3..7df1eb7a1 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -329,6 +329,7 @@ void MainWindow::cleanUpEmpty()
information()->updateDiveInfo(true);
graphics()->setEmptyState();
dive_list()->reload(DiveTripModel::TREE);
+ locationInformationWidget()->setLocationId(0);
globe()->reload();
if (!existing_filename)
setTitle(MWTF_DEFAULT);