Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Update
konqueror
Force-using-WebEnginePart-to-open-konq-URLs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Force-using-WebEnginePart-to-open-konq-URLs.patch of Package konqueror
From ada1448288050107fd9e406a9f72993699e5253b Mon Sep 17 00:00:00 2001 From: Stefano Crocco <stefano.crocco@alice.it> Date: Mon, 7 Sep 2020 17:52:45 +0200 Subject: [PATCH] Force using WebEnginePart to open konq: URLS Without this, if the default HTML engine isn't WebEnginePart, when opening a konq: URL, the user would get an error. Forcing the use of WebEnginePart provides a workaround for this issue. BUG: 424848 --- src/konqmainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/konqmainwindow.cpp b/src/konqmainwindow.cpp index 6afe84727..2e796f619 100644 --- a/src/konqmainwindow.cpp +++ b/src/konqmainwindow.cpp @@ -810,6 +810,14 @@ bool KonqMainWindow::openView(QString mimeType, const QUrl &_url, KonqView *chil } QString serviceName = req.serviceName; // default: none provided + + //Force use of WebEnginePart when opening a konq: URL. If the user chose a different + //default HTML engine, they would get an error because they don't know how to handle + //such scheme. As a workaround, in this case we force the use of WebEnginePart + if (KonqUrl::hasKonqScheme(url)) { + serviceName = "webenginepart"; + } + const QString urlStr = url.url(); if (KonqUrl::isValidNotBlank(urlStr)) { mimeType = QStringLiteral("text/html"); -- GitLab
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor