diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-23 02:38:07 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-23 02:38:07 +0100 |
commit | 5d02d0ba7fc7dfff2776b1d6fe9bd3202a564c12 (patch) | |
tree | 371705d5172bd4536274f3d3fea17a85f744a30b /src/webpage.cpp | |
parent | Forgot some files :) (diff) | |
download | rekonq-5d02d0ba7fc7dfff2776b1d6fe9bd3202a564c12.tar.xz |
Save memory.
One ad-block is enough
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 4 |
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); } |