mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: hide invalid dives
Hide invalid dives if prefs.display_invalid_dives is false. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4e47cdfa2c
commit
95b60d1b18
1 changed files with 3 additions and 0 deletions
|
@ -287,6 +287,9 @@ DiveFilter::DiveFilter() : diveSiteRefCount(0)
|
||||||
|
|
||||||
bool DiveFilter::showDive(const struct dive *d) const
|
bool DiveFilter::showDive(const struct dive *d) const
|
||||||
{
|
{
|
||||||
|
if (d->invalid && !prefs.display_invalid_dives)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!filterData.validFilter)
|
if (!filterData.validFilter)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue