aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-01-23 15:42:14 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-01-23 15:42:14 +0100
commitd886b377ac168d32668b5f3d145279a4f64de730 (patch)
treeb5547077ce555e8c609495fc6b3851b827abbb3d /src/mainwindow.cpp
parentRemoved window/title config (diff)
downloadsmolbote-d886b377ac168d32668b5f3d145279a4f64de730.tar.xz
URL blocking
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 6985292..3f23448 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -137,6 +137,8 @@ void MainWindow::loadProfile(const QString &name)
profile = new WebEngineProfile(profileName, this);
}
+ AdBlockInterceptor *interceptor = new AdBlockInterceptor(this);
+ profile->setRequestInterceptor(interceptor);
connect(profile, SIGNAL(downloadRequested(QWebEngineDownloadItem*)), downloadManager, SLOT(addDownload(QWebEngineDownloadItem*)));
}