summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
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