summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index be3a94a0e..74d5ec6a4 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -2397,7 +2397,7 @@ bool BuddyFilterModel::filterRow(int source_row, const QModelIndex &source_paren
if (!buddyList.isEmpty()) {
buddyList.removeLast(); // remove the "Show Empty Tags";
for(int i = 0; i < rowCount(); i++){
- if(checkState[i] && stringList()[i].indexOf(diveBuddy) != -1){
+ if(checkState[i] && diveBuddy.indexOf(stringList()[i]) != -1){
return true;
}
}
@@ -2476,13 +2476,14 @@ bool MultiFilterSortModel::filterAcceptsRow(int source_row, const QModelIndex &s
return true;
}
+ bool shouldShow = true;
Q_FOREACH (MultiFilterInterface *model, models) {
- if (model->filterRow(source_row, source_parent, sourceModel())) {
- return true;
+ if (!model->filterRow(source_row, source_parent, sourceModel())) {
+ shouldShow = false;
}
}
- return false;
+ return shouldShow;
}
void MultiFilterSortModel::myInvalidate()