summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-23 03:11:26 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-23 03:11:26 +0100
commitdf7a2820a54d8b69e87b495269b88f9ae5ac156d (patch)
tree4124db211bddf2dbf784d0eddbf70bbb8c24ee0f /src/application.cpp
parentFixing urlbar size (diff)
parentSaving 4 bytes per tab :) (diff)
downloadrekonq-df7a2820a54d8b69e87b495269b88f9ae5ac156d.tar.xz
Merge branch 'devAdBlock'
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp
index d02e44c9..766d56ed 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -40,6 +40,7 @@
#include "webview.h"
#include "urlbar.h"
#include "sessionmanager.h"
+#include "adblockmanager.h"
// KDE Includes
#include <KCmdLineArgs>
@@ -61,7 +62,7 @@
QPointer<HistoryManager> Application::s_historyManager;
QPointer<BookmarkProvider> Application::s_bookmarkProvider;
QPointer<SessionManager> Application::s_sessionManager;
-
+QPointer<AdBlockManager> Application::s_adblockManager;
Application::Application()
@@ -432,3 +433,14 @@ MainWindowList Application::mainWindowList()
{
return m_mainWindows;
}
+
+
+
+AdBlockManager *Application::adblockManager()
+{
+ if(!s_adblockManager)
+ {
+ s_adblockManager = new AdBlockManager(instance());
+ }
+ return s_adblockManager;
+} \ No newline at end of file