mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
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>
This commit is contained in:
parent
92f514b081
commit
cf07e3a79b
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue