aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-01-27 17:14:49 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-01-27 17:14:49 +0100
commited7430d2352b3f87991f68fbc0acfe4dbae39b56 (patch)
treebd6d9d0c3c0f6e66131f581bed978c49febada7f /src/mainwindow.cpp
parentBlocker UI (diff)
downloadsmolbote-ed7430d2352b3f87991f68fbc0acfe4dbae39b56.tar.xz
URL blocking whitelist
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1062823..8f54b0b 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -137,7 +137,8 @@ void MainWindow::loadProfile(const QString &name)
profile = new WebEngineProfile(profileName, this);
}
- AdBlockInterceptor *interceptor = new AdBlockInterceptor(this);
+ UrlRequestInterceptor *interceptor = new UrlRequestInterceptor(this);
+ interceptor->setSubscription(blocklistManager->subscription());
profile->setRequestInterceptor(interceptor);
connect(profile, SIGNAL(downloadRequested(QWebEngineDownloadItem*)), downloadManager, SLOT(addDownload(QWebEngineDownloadItem*)));
}