diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-12 20:41:07 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-13 09:06:34 +1200 |
commit | 8d3982c4daf486d00bf72e0c734005d33ac0778d (patch) | |
tree | dcaf7d39a7a4a83c90a9ea7ac0aac2002cd15678 /desktop-widgets | |
parent | 3242fbdc4525349058be719de7a8e19c8aaf7214 (diff) | |
download | subsurface-8d3982c4daf486d00bf72e0c734005d33ac0778d.tar.gz |
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |