mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
3242fbdc45
commit
8d3982c4da
1 changed files with 1 additions and 0 deletions
|
@ -653,6 +653,7 @@ void MainWindow::cleanUpEmpty()
|
||||||
diveList->reload();
|
diveList->reload();
|
||||||
diveList->setSortOrder(DiveTripModelBase::NR, Qt::DescendingOrder);
|
diveList->setSortOrder(DiveTripModelBase::NR, Qt::DescendingOrder);
|
||||||
MapWidget::instance()->reload();
|
MapWidget::instance()->reload();
|
||||||
|
LocationInformationModel::instance()->update();
|
||||||
if (!existing_filename)
|
if (!existing_filename)
|
||||||
setTitle();
|
setTitle();
|
||||||
disableShortcuts();
|
disableShortcuts();
|
||||||
|
|
Loading…
Add table
Reference in a new issue