mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
55253cc5f7
commit
6f231c67a0
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue