summaryrefslogtreecommitdiff
path: root/src/adblock/adblockrule.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-30 23:20:46 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-30 23:20:46 +0200
commitb92ab57a7a65c4c438fe0ff9d35ea6234cd0f1db (patch)
tree07a4d692f131114f52be7262e3121f02a1c0d421 /src/adblock/adblockrule.h
parentrekonq 0.6.50 (diff)
parentImplement a sort of debugging informations for adblock (diff)
downloadrekonq-b92ab57a7a65c4c438fe0ff9d35ea6234cd0f1db.tar.xz
Merge branch 'AdBlockImprovements'
Diffstat (limited to 'src/adblock/adblockrule.h')
-rw-r--r--src/adblock/adblockrule.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/adblock/adblockrule.h b/src/adblock/adblockrule.h
index 701a9fe1..81110054 100644
--- a/src/adblock/adblockrule.h
+++ b/src/adblock/adblockrule.h
@@ -74,7 +74,11 @@ public:
bool match(const QNetworkRequest &request, const QString &encodedUrl, const QString &encodedUrlLowerCase) const
{
Q_ASSERT(encodedUrl.toLower() == encodedUrlLowerCase);
- return m_implementation->match(request, encodedUrl, encodedUrlLowerCase);
+ bool b = m_implementation->match(request, encodedUrl, encodedUrlLowerCase);
+ if(b) {
+ kDebug() << m_implementation->ruleType() << ": rule string = " << m_implementation->ruleString();
+ }
+ return b;
}
private: