diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 632917733..7b3120ca4 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -657,12 +657,8 @@ void MainWindow::closeCurrentFile() { /* free the dives and trips */ clear_git_id(); - clear_dive_file_data(); + DiveTripModelBase::instance()->clear(); setCurrentFile(nullptr); - graphics->setEmptyState(); - mainTab->clearTabs(); - mainTab->updateDiveInfo(); - diveList->reload(); diveList->setSortOrder(DiveTripModelBase::NR, Qt::DescendingOrder); MapWidget::instance()->reload(); LocationInformationModel::instance()->update(); |