Map: in dive-site-edit mode, select those maps we filter for

When dive sites are edited, we shouldn't highlight the sites
of the current dive, but the currently edited site(s).

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-05-03 23:37:42 +02:00 committed by Dirk Hohndel
parent d29f82c52d
commit cd5489e08d
3 changed files with 11 additions and 2 deletions

View file

@ -278,6 +278,11 @@ void MultiFilterSortModel::stopFilterDiveSites()
myInvalidate();
}
const QVector<dive_site *> &MultiFilterSortModel::filteredDiveSites() const
{
return dive_sites;
}
bool MultiFilterSortModel::diveSiteMode() const
{
return !dive_sites.isEmpty();