Merge pull request #306 from kiwix/remove-inspect-source

Remove view source from context menu
This commit is contained in:
Kelson 2019-11-21 09:28:06 -05:00 committed by GitHub
commit 71c4db2dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,8 @@
WebPage::WebPage(QObject *parent) :
QWebEnginePage(parent)
{
action(QWebEnginePage::SavePage)->setVisible(false);
action(QWebEnginePage::ViewSource)->setVisible(false);
connect(QWebEngineProfile::defaultProfile(), &QWebEngineProfile::downloadRequested, this, &WebPage::startDownload);
}