Commit 1b488f75 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Adapt to changes in WebEngineViewer

Differential Review: https://phabricator.kde.org/D5617
parent d0918962
......@@ -44,7 +44,7 @@ set(KPIMTEXTEDIT_LIB_VERSION "5.5.40")
set(LIBGRANTLEETHEME_LIB_VERSION_LIB "5.5.40")
set(LIBKDEPIM_LIB_VERSION_LIB "5.5.40")
set(LIBKLEO_LIB_VERSION_LIB "5.5.40")
set(MESSAGELIB_LIB_VERSION_LIB "5.5.40")
set(MESSAGELIB_LIB_VERSION_LIB "5.5.43")
set(PIMCOMMON_LIB_VERSION_LIB "5.5.40")
set(SYNDICATION_LIB_VERSION "5.5.40")
......
......@@ -98,7 +98,8 @@ ArticleViewerWebEngine::ArticleViewerWebEngine(KActionCollection *ac, QWidget *p
connect(page(), &QWebEnginePage::recentlyAudibleChanged,
this, &ArticleViewerWebEngine::slotWebPageMutedOrAudibleChanged);
connect(WebEngineViewer::LocalDataBaseManager::self(), &WebEngineViewer::LocalDataBaseManager::checkUrlFinished, this, &ArticleViewerWebEngine::slotCheckedUrlFinished);
connect(phishingDatabase(), &WebEngineViewer::LocalDataBaseManager::checkUrlFinished,
this, &ArticleViewerWebEngine::slotCheckedUrlFinished);
}
......@@ -394,7 +395,7 @@ void ArticleViewerWebEngine::slotLinkClicked(const QUrl &url)
return;
}
if (Settings::checkPhishingUrl()) {
WebEngineViewer::LocalDataBaseManager::self()->checkUrl(url);
phishingDatabase()->checkUrl(url);
} else {
openSafeUrl(url);
}
......
......@@ -65,7 +65,6 @@
#include "mainframe.h"
#include <WebEngineViewer/ZoomActionMenu>
#include "job/downloadarticlejob.h"
#include <WebEngineViewer/LocalDataBaseManager>
#include <QAction>
#include <kfileitem.h>
......@@ -115,8 +114,6 @@ MainWidget::MainWidget(Part *part, QWidget *parent, ActionManagerImpl *actionMan
{
setObjectName(name);
WebEngineViewer::LocalDataBaseManager::self()->initialize();
FeedListManagementInterface::setInstance(m_feedListManagementInterface);
m_actionManager->initMainWidget(this);
......
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