From 15279a36414fbd652392fc5b1545fd7dc7811cbe Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 28 Aug 2015 17:43:44 +0200 Subject: [PATCH] WebView: Don't show source on qrc: scheme --- src/lib/webengine/webview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp index ec65099fc..478024f0d 100644 --- a/src/lib/webengine/webview.cpp +++ b/src/lib/webengine/webview.cpp @@ -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; });