mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
29c6aea797
commit
0c38754916
2 changed files with 32 additions and 23 deletions
|
@ -473,8 +473,8 @@ void MainWindow::selectionChanged()
|
|||
mainTab->updateDiveInfo();
|
||||
configureToolbar();
|
||||
enableDisableOtherDCsActions();
|
||||
MapWidget::instance()->reload();
|
||||
}
|
||||
MapWidget::instance()->reload();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionNew_triggered()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue