diff options
Diffstat (limited to 'qt-ui/filtermodels.cpp')
-rw-r--r-- | qt-ui/filtermodels.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qt-ui/filtermodels.cpp b/qt-ui/filtermodels.cpp index c599a6578..a25f501f0 100644 --- a/qt-ui/filtermodels.cpp +++ b/qt-ui/filtermodels.cpp @@ -329,7 +329,6 @@ void MultiFilterSortModel::myInvalidate() DiveListView *dlv = MainWindow::instance()->dive_list(); divesDisplayed = 0; - divesFilteredOut = 0; invalidate(); @@ -356,9 +355,7 @@ void MultiFilterSortModel::myInvalidate() } for_each_dive (i,d) { - if (d->hidden_by_filter) - divesFilteredOut++; - else + if (!d->hidden_by_filter) divesDisplayed++; } |