diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-09-29 17:28:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-09-29 17:28:18 +0200 |
commit | 0b1564dd34e2b9baf2d981e47abcd4cd7ebcc0f2 (patch) | |
tree | 8f4787ee4dc417209dec1f0ecae974257131d940 /src/adblock/adblockrule.h | |
parent | HACK: fix Chinese sites encoding, as suggested by Weng Xuetian in bug #251264 (diff) | |
download | rekonq-0b1564dd34e2b9baf2d981e47abcd4cd7ebcc0f2.tar.xz |
Implement a sort of debugging informations for adblock
Diffstat (limited to 'src/adblock/adblockrule.h')
-rw-r--r-- | src/adblock/adblockrule.h | 6 |
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: |