summaryrefslogtreecommitdiff
path: root/src/adblock/adblockmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-21 19:21:04 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-24 18:41:20 +0100
commitfd1f2205b673a41bedb3959c99b8958f99a7b269 (patch)
tree6f9b3815fa7c595474689772aae1338bdb4cf1a4 /src/adblock/adblockmanager.cpp
parentNo more static members in the Application class, (diff)
downloadrekonq-fd1f2205b673a41bedb3959c99b8958f99a7b269.tar.xz
AdBlock: adding a Null Rule to match all the unimplemented filters.
BUG:248045 BUG:253329 BUG:265909
Diffstat (limited to 'src/adblock/adblockmanager.cpp')
-rw-r--r--src/adblock/adblockmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adblock/adblockmanager.cpp b/src/adblock/adblockmanager.cpp
index fb36ef0f..8f51fd1a 100644
--- a/src/adblock/adblockmanager.cpp
+++ b/src/adblock/adblockmanager.cpp
@@ -137,6 +137,7 @@ void AdBlockManager::loadRules(const QStringList &rules)
const QString filter = stringRule.mid(2);
if (_hostWhiteList.tryAddFilter(filter))
continue;
+
AdBlockRule rule(filter);
_whiteList << rule;
continue;
@@ -155,6 +156,7 @@ void AdBlockManager::loadRules(const QStringList &rules)
if (_hostBlackList.tryAddFilter(stringRule))
continue;
+
AdBlockRule rule(stringRule);
_blackList << rule;
}