From cabe70be8079a69e159d46525fc8b283d9ec7c2a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 30 Aug 2019 16:48:17 +0200 Subject: 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 --- desktop-widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3-70-g09d2