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/application.cpp | |
parent | Forgot some files :) (diff) | |
download | rekonq-5d02d0ba7fc7dfff2776b1d6fe9bd3202a564c12.tar.xz |
Save memory.
One ad-block is enough
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 |