From cf07e3a79bc928c132b624ab916c326b8d0c8e34 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 14 Feb 2015 11:56:33 -0800 Subject: [PATCH] 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 --- qt-ui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) 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);