summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-12-21 18:52:53 +0100
committerLaurent Montel <[email protected]>2018-12-21 18:52:53 +0100
commit6bf5348ee5f637ebc8ff85dba742b04896bdf93e (patch)
treed8b8806cab90a52be6c9d38436d76583ae56d09d
parentbca8215f6d793ca6b0169ce9b2c8c9cd8f2b0f41 (diff)
Disable subscription
-rw-r--r--plugins/webengineurlinterceptor/adblock/lib/adblockblockableitemsjob.cpp1
-rw-r--r--plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/webengineurlinterceptor/adblock/lib/adblockblockableitemsjob.cpp b/plugins/webengineurlinterceptor/adblock/lib/adblockblockableitemsjob.cpp
index 3af98f2..85e51a1 100644
--- a/plugins/webengineurlinterceptor/adblock/lib/adblockblockableitemsjob.cpp
+++ b/plugins/webengineurlinterceptor/adblock/lib/adblockblockableitemsjob.cpp
@@ -46,7 +46,6 @@ InvokeWrapper<Arg, R, C> invoke(R *receiver, void (C::*memberFunction)(Arg))
AdBlockBlockableItemsJob::AdBlockBlockableItemsJob(QObject *parent)
: QObject(parent)
- , mWebEngineView(nullptr)
{
}
diff --git a/plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp b/plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp
index 7c6d407..da92078 100644
--- a/plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp
+++ b/plugins/webengineurlinterceptor/adblock/lib/adblocksubscription.cpp
@@ -105,6 +105,9 @@ void AdBlockSubscription::setUrl(const QUrl &url)
void AdBlockSubscription::loadSubscription(const QStringList &disabledRules)
{
+ if (!enabled()) {
+ return;
+ }
QFile file(mFilePath);
//qCWarning(ADBLOCKINTERCEPTOR_LOG) << "loadSubscription:: loading path:" << mFilePath;
if (!file.exists()) {