diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-17 14:37:10 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-17 14:41:12 -0800 |
commit | 7a6ff7a53cc23c2129fb5f4d4046acf71404b087 (patch) | |
tree | 77279188aad8994332ed72e808322254c8a0459d /qt-ui/mainwindow.cpp | |
parent | 962abba1f7f09f5d5b87e952e442589c0fced64b (diff) | |
download | subsurface-7a6ff7a53cc23c2129fb5f4d4046acf71404b087.tar.gz |
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>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-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 183143aff..8628ca558 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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; |