diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-12-09 20:16:39 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-09 20:16:39 -0700 |
commit | 6f231c67a01201b02d0ffc0f46bf7ff26242e2a9 (patch) | |
tree | b69aac745145ecb83b5a6ebdcd624e3f43bbdcb7 /qt-ui/mainwindow.cpp | |
parent | 55253cc5f71d37f6b6316aef334800c178fdaf0b (diff) | |
download | subsurface-6f231c67a01201b02d0ffc0f46bf7ff26242e2a9.tar.gz |
Close and clear filters when closing divelog
Otherwise non-sensical information stays behind.
Fixes #777
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index f26c0f168..901a039f3 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -287,8 +287,11 @@ void MainWindow::closeCurrentFile() void MainWindow::on_actionClose_triggered() { - if (okToClose(tr("Please save or cancel the current dive edit before closing the file."))) + if (okToClose(tr("Please save or cancel the current dive edit before closing the file."))) { closeCurrentFile(); + ui.multiFilter->closeFilter(); + recreateDiveList(); + } } QString MainWindow::lastUsedDir() |