mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive site: inform map of selection in DiveFilter::setFilterDiveSite
When starting / changing the dive-site filter, inform the map of the changed dive site selection by calling MapWidget::instance()->selectionChanged(); This fixes a bug, where on clicking dive sites in the dive site tab the dive sites from the *previous* click were highlighted. Perhaps the selectionChanged() call should be put into the setSelected() call. But the data flow between the different parts of the dive-site and map code are so convoluted that I don't want to risk anything! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9ed886e4be
commit
317ee2f104
1 changed files with 1 additions and 0 deletions
|
@ -217,6 +217,7 @@ void DiveFilter::setFilterDiveSite(QVector<dive_site *> ds)
|
|||
|
||||
emit diveListNotifier.filterReset();
|
||||
MapWidget::instance()->setSelected(dive_sites);
|
||||
MapWidget::instance()->selectionChanged();
|
||||
MainWindow::instance()->diveList->expandAll();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue