summaryrefslogtreecommitdiff
path: root/src/adblock
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-02-21 17:28:38 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-02-21 17:28:38 +0100
commite8ad137d5c55ffbed3c266cd701e70e5b350b40d (patch)
treea91798b376cbdb2e06171e1a25754ffd5f379b5d /src/adblock
parentTriple check against stupid rules like "*" or "##" (diff)
downloadrekonq-e8ad137d5c55ffbed3c266cd701e70e5b350b40d.tar.xz
Delay 1 sec adblock settings load to boost startup performance
Diffstat (limited to 'src/adblock')
-rw-r--r--src/adblock/adblockmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/adblock/adblockmanager.cpp b/src/adblock/adblockmanager.cpp
index fe4d028a..62f8930e 100644
--- a/src/adblock/adblockmanager.cpp
+++ b/src/adblock/adblockmanager.cpp
@@ -40,6 +40,7 @@
// Qt Includes
#include <QUrl>
+#include <QTimer>
#include <QWebElement>
#include <QNetworkReply>
#include <QNetworkRequest>
@@ -66,7 +67,8 @@ AdBlockManager::AdBlockManager(QObject *parent)
, _isAdblockEnabled(false)
, _isHideAdsEnabled(false)
{
- loadSettings();
+ // NOTE: launch this with 1 sec delay to get sure we can start up fast...
+ QTimer::singleShot(1000, this, SLOT(loadSettings()));
}