Close and clear filters when closing divelog

Otherwise non-sensical information stays behind.

Fixes #777

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-12-09 20:16:39 -07:00
parent 55253cc5f7
commit 6f231c67a0

View file

@ -287,8 +287,11 @@ void MainWindow::closeCurrentFile()
void MainWindow::on_actionClose_triggered() 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(); closeCurrentFile();
ui.multiFilter->closeFilter();
recreateDiveList();
}
} }
QString MainWindow::lastUsedDir() QString MainWindow::lastUsedDir()