diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-23 03:11:26 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-23 03:11:26 +0100 |
commit | df7a2820a54d8b69e87b495269b88f9ae5ac156d (patch) | |
tree | 4124db211bddf2dbf784d0eddbf70bbb8c24ee0f /src/application.cpp | |
parent | Fixing urlbar size (diff) | |
parent | Saving 4 bytes per tab :) (diff) | |
download | rekonq-df7a2820a54d8b69e87b495269b88f9ae5ac156d.tar.xz |
Merge branch 'devAdBlock'
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 14 |
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 |