blob: f15cfd4e9639197a998655ce13fd62d6addf6326 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From 50280fae48717e76d56685bf0fda19783c8904e1 Mon Sep 17 00:00:00 2001
From: Doug Massay <douglaslmassay@gmail.com>
Date: Fri, 5 Jun 2020 20:25:41 -0400
Subject: [PATCH] Fix Qt5.15.x behavior-change breakage
---
src/MainUI/MainWindow.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/MainUI/MainWindow.cpp b/src/MainUI/MainWindow.cpp
index 64202e113..de7e7f97f 100644
--- a/src/MainUI/MainWindow.cpp
+++ b/src/MainUI/MainWindow.cpp
@@ -4289,7 +4289,7 @@ void MainWindow::ReadSettings()
web_settings->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false);
web_settings->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, false);
web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, (settings.remoteOn() == 1));
- web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, false);
+ web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);
web_settings->setAttribute(QWebEngineSettings::PluginsEnabled, false);
web_settings->setAttribute(QWebEngineSettings::AutoLoadIconsForPage, false);
web_settings->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, true);
|