mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
bce31ab862
commit
cabe70be80
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue