From f3a02d70495bf502ca4fe157dc046c096483fa04 Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Thu, 7 Oct 2021 00:11:20 +0200 Subject: [PATCH] Ignore invalid dives in subsurface-mobile dive summary Match subsurface-desktop's invalid dive behavior Signed-off-by: Tim Segers --- qt-models/divesummarymodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt-models/divesummarymodel.cpp b/qt-models/divesummarymodel.cpp index 6ae5313e4..b679da1f0 100644 --- a/qt-models/divesummarymodel.cpp +++ b/qt-models/divesummarymodel.cpp @@ -121,6 +121,10 @@ static void calculateDive(struct dive *dive, Stats &stats) return; } + if (dive->invalid) { + return; + } + // one more real dive stats.dives++;