1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

WebView: Don't show source on qrc: scheme

This commit is contained in:
David Rosca 2015-08-28 17:43:44 +02:00
parent a672771cef
commit 15279a3641

View File

@ -631,7 +631,7 @@ void WebView::openActionUrl()
void WebView::showSource()
{
// view-source: doesn't work on itself and custom schemes
if (url().scheme() == QL1S("view-source") || url().scheme() == QL1S("qupzilla")) {
if (url().scheme() == QL1S("view-source") || url().scheme() == QL1S("qupzilla") || url().scheme() == QL1S("qrc")) {
page()->toHtml([](const QString &html) {
std::cout << html.toLocal8Bit().constData() << std::endl;
});