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:
parent
a672771cef
commit
15279a3641
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user