Desktop: don't reload dive list model after clearing the model

By clearing the model, its contents are removed. There is no
point in reloading the model.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-11-18 18:46:29 +01:00 committed by Dirk Hohndel
parent 635d67ee7f
commit 958032b21c

View file

@ -691,7 +691,6 @@ void MainWindow::on_actionClose_triggered()
closeCurrentFile(); closeCurrentFile();
DivePictureModel::instance()->updateDivePictures(); DivePictureModel::instance()->updateDivePictures();
setApplicationState(ApplicationState::Default); setApplicationState(ApplicationState::Default);
recreateDiveList();
} }
} }