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++;