diff options
-rw-r--r-- | qt-models/divesummarymodel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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++; |