diff --git a/qt-ui/filtermodels.cpp b/qt-ui/filtermodels.cpp index 9e3c76331..edd62cb49 100644 --- a/qt-ui/filtermodels.cpp +++ b/qt-ui/filtermodels.cpp @@ -114,11 +114,6 @@ bool SuitsFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel bool SuitsFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const { - // If there's nothing checked, this should show everything - if (!anyChecked) { - return true; - } - QModelIndex index0 = sourceModel->index(source_row, 0, source_parent); QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE); struct dive *d = (struct dive *)diveVariant.value(); @@ -211,11 +206,6 @@ bool TagFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel * bool TagFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const { - // If there's nothing checked, this should show everything - if (!anyChecked) { - return true; - } - QModelIndex index0 = sourceModel->index(source_row, 0, source_parent); QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE); struct dive *d = (struct dive *)diveVariant.value(); @@ -269,11 +259,6 @@ bool BuddyFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel bool BuddyFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const { - // If there's nothing checked, this should show everything - if (!anyChecked) { - return true; - } - QModelIndex index0 = sourceModel->index(source_row, 0, source_parent); QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE); struct dive *d = (struct dive *)diveVariant.value(); @@ -348,12 +333,6 @@ bool LocationFilterModel::doFilter(struct dive *d, QModelIndex &index0, QAbstrac bool LocationFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const { - - // If there's nothing checked, this should show everything - if (!anyChecked) { - return true; - } - QModelIndex index0 = sourceModel->index(source_row, 0, source_parent); QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE); struct dive *d = (struct dive *)diveVariant.value();