Hide any pictures shown when closing divelog

Fixes #776

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-12-09 21:15:52 -07:00
parent b575069638
commit 4029c87ec7
2 changed files with 4 additions and 1 deletions

View file

@ -289,6 +289,8 @@ void MainWindow::on_actionClose_triggered()
{
if (okToClose(tr("Please save or cancel the current dive edit before closing the file."))) {
closeCurrentFile();
// hide any pictures and the filter
DivePictureModel::instance()->updateDivePictures();
ui.multiFilter->closeFilter();
recreateDiveList();
}