diff options
-rw-r--r-- | qt-ui/filtermodels.cpp | 5 | ||||
-rw-r--r-- | qt-ui/filtermodels.h | 1 |
2 files changed, 1 insertions, 5 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++; } diff --git a/qt-ui/filtermodels.h b/qt-ui/filtermodels.h index 0fa83da23..1406b8272 100644 --- a/qt-ui/filtermodels.h +++ b/qt-ui/filtermodels.h @@ -88,7 +88,6 @@ public: virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; void addFilterModel(MultiFilterInterface *model); void removeFilterModel(MultiFilterInterface *model); - int divesFilteredOut; int divesDisplayed; public slots: |