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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-05-08 21:35:49 +02:00 committed by Dirk Hohndel
parent 29c6aea797
commit 0c38754916
2 changed files with 32 additions and 23 deletions

View file

@ -473,8 +473,8 @@ void MainWindow::selectionChanged()
mainTab->updateDiveInfo();
configureToolbar();
enableDisableOtherDCsActions();
MapWidget::instance()->reload();
}
MapWidget::instance()->reload();
}
void MainWindow::on_actionNew_triggered()