From 6f231c67a01201b02d0ffc0f46bf7ff26242e2a9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 9 Dec 2014 20:16:39 -0700 Subject: Close and clear filters when closing divelog Otherwise non-sensical information stays behind. Fixes #777 Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3-70-g09d2