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

Always allow to open uknown schemes with QtWebEngine 5.11

This makes unknown schemes like magnet: correctly open in external
applications.
This commit is contained in:
David Rosca 2018-03-01 16:02:41 +01:00
parent 6f67987ab5
commit 1c01936932
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -923,6 +923,7 @@ void MainApplication::loadSettings()
webSettings->setAttribute(QWebEngineSettings::JavascriptCanPaste, settings.value("allowJavaScriptPaste", true).toBool());
webSettings->setAttribute(QWebEngineSettings::PlaybackRequiresUserGesture, settings.value("DisableVideoAutoPlay", false).toBool());
webSettings->setAttribute(QWebEngineSettings::WebRTCPublicInterfacesOnly, settings.value("WebRTCPublicIpOnly", true).toBool());
webSettings->setUnknownUrlSchemePolicy(QWebEngineSettings::AllowAllUnknownUrlSchemes);
#endif
webSettings->setDefaultTextEncoding(settings.value("DefaultEncoding", webSettings->defaultTextEncoding()).toString());