From 0c387549164d7eec3ea6647c54ada2fba7f8d5e6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 8 May 2019 21:35:49 +0200 Subject: Map: construct list of dive sites from dive site table Instead of looping over the dive table and extract dive sites, loop over the dive site table. This makes it possible to show dive sites that have no dive associated with them. But we have to create to functions that check whether a dive site has any shown dives or has any selected dives. Moreover, change the code to add near dive sites of the same name if in edit mode. Other wise (erroneously added?) dive sites with the same name cannot be moved on the map. Signed-off-by: Berthold Stoeger --- desktop-widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 037d0c01f..9f19cccb2 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -473,8 +473,8 @@ void MainWindow::selectionChanged() mainTab->updateDiveInfo(); configureToolbar(); enableDisableOtherDCsActions(); - MapWidget::instance()->reload(); } + MapWidget::instance()->reload(); } void MainWindow::on_actionNew_triggered() -- cgit v1.2.3-70-g09d2