mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix a couple of problems with dive merging
- Dive list no longer has messed up trip entries - Dive list is now correctly marked as modified after trips are merged - When data file is closed, the list of selected trips is cleared which avoids a potential crash when loading a new data file Fixes #286 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
962abba1f7
commit
7a6ff7a53c
2 changed files with 5 additions and 0 deletions
|
@ -145,6 +145,7 @@ void MainWindow::on_actionClose_triggered()
|
|||
while (dive_table.nr)
|
||||
delete_single_dive(0);
|
||||
|
||||
dive_list()->selectedTrips.clear();
|
||||
/* clear the selection and the statistics */
|
||||
selected_dive = -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue