diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-30 16:48:17 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-06 11:48:47 -0700 |
commit | cabe70be8079a69e159d46525fc8b283d9ec7c2a (patch) | |
tree | f25ecb8ea361eeab33df766ecc5816eabcbf2e39 /desktop-widgets/mainwindow.cpp | |
parent | bce31ab8621537441b42389801e20de56861438c (diff) | |
download | subsurface-cabe70be8079a69e159d46525fc8b283d9ec7c2a.tar.gz |
Desktop: reload map after refreshing the list
In MainWindow::refreshDisplay() with doRecreateDiveList=true
the map was reset before the dive list was recreated. This
makes no sense and only worked because the map was reloaded
again when a dive in the list was selected.
Reload the map after recreating the dive list.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index b19062612..2a215b1b7 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -408,10 +408,10 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList) { mainTab->reload(); TankInfoModel::instance()->update(); - MapWidget::instance()->reload(); if (doRecreateDiveList) recreateDiveList(); + MapWidget::instance()->reload(); setApplicationState(ApplicationState::Default); diveList->setEnabled(true); diveList->setFocus(); |