summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-09 20:16:39 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-09 20:16:39 -0700
commit6f231c67a01201b02d0ffc0f46bf7ff26242e2a9 (patch)
treeb69aac745145ecb83b5a6ebdcd624e3f43bbdcb7 /qt-ui/mainwindow.cpp
parent55253cc5f71d37f6b6316aef334800c178fdaf0b (diff)
downloadsubsurface-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.cpp5
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()