summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index e8c204f8..941567a0 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -41,6 +41,7 @@
#include "mainview.h"
#include "webview.h"
#include "webpluginfactory.h"
+#include "adblockmanager.h"
// KDE Includes
#include <KStandardDirs>
@@ -69,7 +70,6 @@ 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));
@@ -257,5 +257,5 @@ bool WebPage::authorizedRequest(const QUrl &url) const
if(url.scheme() != QLatin1String("http"))
return true;
- return m_adBlockMan->isUrlAllowed(url);
+ return Application::adblockManager()->isUrlAllowed(url);
}