mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
72a15c46d9
commit
de2c4d93e0
6 changed files with 2 additions and 18 deletions
|
@ -49,6 +49,8 @@ void MapWidgetHelper::centerOnDiveSite(struct dive_site *ds)
|
|||
void MapWidgetHelper::setSelected(const QVector<dive_site *> &divesites)
|
||||
{
|
||||
m_mapLocationModel->setSelected(divesites);
|
||||
m_mapLocationModel->selectionChanged();
|
||||
updateEditMode();
|
||||
}
|
||||
|
||||
void MapWidgetHelper::centerOnSelectedDiveSite()
|
||||
|
@ -118,12 +120,6 @@ void MapWidgetHelper::reloadMapLocations()
|
|||
m_mapLocationModel->reload(m_map);
|
||||
}
|
||||
|
||||
void MapWidgetHelper::selectionChanged()
|
||||
{
|
||||
updateEditMode();
|
||||
m_mapLocationModel->selectionChanged();
|
||||
}
|
||||
|
||||
void MapWidgetHelper::selectedLocationChanged(struct dive_site *ds_in)
|
||||
{
|
||||
int idx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue