diff options
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 1 | ||||
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 1 | ||||
-rw-r--r-- | qt-models/divetripmodel.cpp | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index b55002285..8474eee71 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -660,7 +660,6 @@ void MainWindow::closeCurrentFile() setCurrentFile(nullptr); diveList->setSortOrder(DiveTripModelBase::NR, Qt::DescendingOrder); MapWidget::instance()->reload(); - LocationInformationModel::instance()->update(); if (!existing_filename) setTitle(); disableShortcuts(); diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index ca51feb05..252e135a6 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -517,7 +517,6 @@ void MainTab::reload() buddyModel.updateModel(); diveMasterModel.updateModel(); tagModel.updateModel(); - LocationInformationModel::instance()->update(); } void MainTab::refreshDisplayedDiveSite() diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 677be21fb..e5a1b8cc5 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -474,6 +474,7 @@ void DiveTripModelBase::clear() beginResetModel(); clear_dive_file_data(); clearData(); + LocationInformationModel::instance()->update(); oldCurrent = nullptr; emit diveListNotifier.divesSelected({}); // Inform profile, etc of changed selection endResetModel(); @@ -485,6 +486,7 @@ void DiveTripModelBase::reset() beginResetModel(); clearData(); populate(); + LocationInformationModel::instance()->update(); endResetModel(); initSelection(); emit diveListNotifier.numShownChanged(); |