diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index 399b2608f..37578abc1 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -199,14 +199,6 @@ bool MultiFilterSortModel::filterAcceptsRow(int source_row, const QModelIndex &s return m->data(index0, DiveTripModelBase::SHOWN_ROLE).value(); } -void MultiFilterSortModel::filterChanged(const QModelIndex &from, const QModelIndex &to, const QVector &roles) -{ - // Only redo the filter if a checkbox changed. If the count of an entry changed, - // we do *not* want to recalculate the filters. - if (roles.contains(Qt::CheckStateRole)) - myInvalidate(); -} - void MultiFilterSortModel::myInvalidate() { QAbstractItemModel *m = sourceModel(); diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h index 3670528e6..65bab27df 100644 --- a/qt-models/filtermodels.h +++ b/qt-models/filtermodels.h @@ -71,7 +71,6 @@ slots: void startFilterDiveSites(QVector ds); void setFilterDiveSite(QVector ds); void stopFilterDiveSites(); - void filterChanged(const QModelIndex &from, const QModelIndex &to, const QVector &roles); void resetModel(DiveTripModelBase::Layout layout); void filterDataChanged(const FilterData &data); void divesAdded(struct dive_trip *, bool, const QVector &dives);