summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-23 02:38:07 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-23 02:38:07 +0100
commit5d02d0ba7fc7dfff2776b1d6fe9bd3202a564c12 (patch)
tree371705d5172bd4536274f3d3fea17a85f744a30b /src/webpage.cpp
parentForgot some files :) (diff)
downloadrekonq-5d02d0ba7fc7dfff2776b1d6fe9bd3202a564c12.tar.xz
Save memory.
One ad-block is enough
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);
}