Commit ccbf0db8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Update settings

parent 7fc253c1
Pipeline #65746 passed with stage
in 11 minutes and 14 seconds
......@@ -131,6 +131,11 @@ void ArticleViewerWebEngine::execPrintPreviewPage(QPrinter *printer, int timeout
}
}
void ArticleViewerWebEngine::updateSecurity()
{
mExternalReference->setAllowExternalContent(Settings::self()->loadExternalReferences());
}
void ArticleViewerWebEngine::slotWebPageMutedOrAudibleChanged()
{
Q_EMIT webPageMutedOrAudibleChanged(page()->isAudioMuted(), page()->recentlyAudible());
......
......@@ -64,6 +64,8 @@ public:
void execPrintPreviewPage(QPrinter *printer, int timeout);
virtual void updateSecurity();
protected:
QUrl mCurrentUrl;
KActionCollection *const mActionCollection;
......
......@@ -362,6 +362,7 @@ void ArticleViewerWidget::updateAfterConfigChanged()
slotShowSummary(m_node);
break;
}
m_articleViewerWidgetNg->articleViewerNg()->updateSecurity();
}
void ArticleViewerWidget::reload()
......
......@@ -56,6 +56,11 @@ AkrWebEngineViewer::~AkrWebEngineViewer()
{
}
void AkrWebEngineViewer::updateSecurity()
{
// Nothing
}
void AkrWebEngineViewer::contextMenuEvent(QContextMenuEvent *e)
{
displayContextMenu(e->pos());
......
......@@ -17,6 +17,7 @@ class AkrWebEngineViewer : public ArticleViewerWebEngine
public:
explicit AkrWebEngineViewer(KActionCollection *ac, QWidget *parent = nullptr);
~AkrWebEngineViewer() override;
void updateSecurity() override;
protected:
void displayContextMenu(const QPoint &pos) override;
......
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