diff options
Diffstat (limited to 'qt-models/divelistmodel.cpp')
-rw-r--r-- | qt-models/divelistmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp index 75eb9137a..b12786fa9 100644 --- a/qt-models/divelistmodel.cpp +++ b/qt-models/divelistmodel.cpp @@ -100,7 +100,7 @@ void DiveListSortModel::updateDivesShownInTrips() struct dive_trip *dt = dive_trip_list; int rc = rowCount(); while (dt) { - dt->showndives = rc ? 0 : dt->nrdives; + dt->showndives = rc ? 0 : dt->dives.nr; dt = dt->next; } for (int i = 0; i < rowCount(); i++) { |