summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-20 02:27:17 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-20 02:27:17 +0100
commit85900021a041818ecf2415f5925fcc2a5aa5e7a4 (patch)
treec0d8474cdf74e9c19f6f2a42a9971ff4a14c0dfa /src/webpage.cpp
parentMinimum font size (diff)
downloadrekonq-85900021a041818ecf2415f5925fcc2a5aa5e7a4.tar.xz
AdBlock. First blocks :D
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 94ecbe09..9803d8a3 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -69,6 +69,7 @@ WebPage::WebPage(QObject *parent, qlonglong windowId)
: KWebPage(parent, windowId)
, m_keyboardModifiers(Qt::NoModifier)
, m_pressedButtons(Qt::NoButton)
+ , m_adBlockMan(new AdBlockManager(this))
{
setPluginFactory(new WebPluginFactory(this));
@@ -252,7 +253,5 @@ QString WebPage::errorPage(QNetworkReply *reply)
bool WebPage::authorizedRequest(const QUrl &url) const
{
- Q_UNUSED(url)
- // TODO implement ad-block here
- return true;
+ return m_adBlockMan->isUrlAllowed(url);
}