Desktop: update dive site list on file-close

The model was not reset on file close, leading to weird effects.
New dive sites would be added at the end of a table full of empty
entries.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-04-12 20:41:07 +02:00 committed by Dirk Hohndel
parent 3242fbdc45
commit 8d3982c4da

View file

@ -653,6 +653,7 @@ void MainWindow::cleanUpEmpty()
diveList->reload();
diveList->setSortOrder(DiveTripModelBase::NR, Qt::DescendingOrder);
MapWidget::instance()->reload();
LocationInformationModel::instance()->update();
if (!existing_filename)
setTitle();
disableShortcuts();