aboutsummaryrefslogtreecommitdiff
path: root/src/filter/filtertree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filter/filtertree.cpp')
-rw-r--r--src/filter/filtertree.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/filter/filtertree.cpp b/src/filter/filtertree.cpp
index b71c2a3..378b888 100644
--- a/src/filter/filtertree.cpp
+++ b/src/filter/filtertree.cpp
@@ -155,7 +155,9 @@ QVector<Filter*> FilterTree::filters(const QString &domain)
{
QVector<Filter*> nodes;
for(int i = 0; i < rootItem->childCount(); ++i) {
- nodes.append(rootItem->child(i));
+ if(rootItem->child(i)->hasDomainMatch(domain)) {
+ nodes.append(rootItem->child(i));
+ }
}
return nodes;
}