map: fold selectionChanged() into setSelection()

This was very weird: a setSelection() call was always followed
by a selectionChanged() call, though sometimes in convoluted
ways. Notably, the formed was called by the DiveListView, the
lattern then by the MainWindow.

Let's just merge these two functions.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-09-03 23:00:03 +02:00 committed by bstoeger
parent 72a15c46d9
commit de2c4d93e0
6 changed files with 2 additions and 18 deletions

View file

@ -181,7 +181,6 @@ void DiveFilter::setFilterDiveSite(QVector<dive_site *> ds)
emit diveListNotifier.filterReset();
#ifdef MAP_SUPPORT
MapWidget::instance()->setSelected(dive_sites);
MapWidget::instance()->selectionChanged();
#endif
MainWindow::instance()->diveList->expandAll();
}