1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02: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;
});