summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/divefilter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/divefilter.cpp b/core/divefilter.cpp
index c84b31c2f..ed8e30f5f 100644
--- a/core/divefilter.cpp
+++ b/core/divefilter.cpp
@@ -287,6 +287,9 @@ DiveFilter::DiveFilter() : diveSiteRefCount(0)
bool DiveFilter::showDive(const struct dive *d) const
{
+ if (d->invalid && !prefs.display_invalid_dives)
+ return false;
+
if (!filterData.validFilter)
return true;