diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-02-21 19:21:04 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-02-24 18:41:20 +0100 |
commit | fd1f2205b673a41bedb3959c99b8958f99a7b269 (patch) | |
tree | 6f9b3815fa7c595474689772aae1338bdb4cf1a4 /src/adblock/adblockmanager.cpp | |
parent | No more static members in the Application class, (diff) | |
download | rekonq-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.cpp | 2 |
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; } |