From 8d3982c4daf486d00bf72e0c734005d33ac0778d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 12 Apr 2019 20:41:07 +0200 Subject: 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 --- desktop-widgets/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/mainwindow.cpp') diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 84c4c867a..e1933a472 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -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(); -- cgit v1.2.3-70-g09d2