Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ae6db47a authored by Laurent Montel's avatar Laurent Montel 😁

Fix debug

parent 9a1b0ff0
......@@ -56,7 +56,6 @@ bool AdblockInterceptorInterface::interceptRequest(QWebEngineUrlRequestInfo &inf
QList<QAction *> AdblockInterceptorInterface::interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const
{
QList<QAction *> lstAction;
qDebug() << " mAdblockManager->isEnabled()" << mAdblockManager->isEnabled();
if (mAdblockManager->isEnabled()) {
lstAction.append(mShowBlockableItems);
if (!result.imageUrl().isEmpty()) {
......@@ -94,6 +93,7 @@ void AdblockInterceptorInterface::setWebEngineView(QWebEngineView *webEngineView
void AdblockInterceptorInterface::slotBlockImage()
{
if (mCurrentWebHitTest.imageUrl().isValid()) {
qDebug() << " mCurrentWebHitTest.imageUrl()"<<mCurrentWebHitTest.imageUrl();
//TODO block it.
}
//TODO
......@@ -101,6 +101,7 @@ void AdblockInterceptorInterface::slotBlockImage()
void AdblockInterceptorInterface::slotSearchItemsDone(const QVector<AdBlock::AdBlockResult> &result)
{
//TODO update
QPointer<AdBlock::AdBlockBlockableItemsDialog> dlg = new AdBlock::AdBlockBlockableItemsDialog(mWebEngineView);
dlg->setAdblockResult(result);
dlg->exec();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment