summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-07-05 11:57:26 +0200
committerGitHub <noreply@github.com>2022-07-05 11:57:26 +0200
commiteb4ce48b65f6c9ad227547daab7d1ff2b97c1690 (patch)
treec27d82050b0dd6b08ccec68a549f01c955da6f7f
parentMerge pull request #8521 from lat9nq/gdbstub-in-bounds (diff)
parenttweak API usage in qt_web_browser.cpp (diff)
downloadyuzu-eb4ce48b65f6c9ad227547daab7d1ff2b97c1690.tar
yuzu-eb4ce48b65f6c9ad227547daab7d1ff2b97c1690.tar.gz
yuzu-eb4ce48b65f6c9ad227547daab7d1ff2b97c1690.tar.bz2
yuzu-eb4ce48b65f6c9ad227547daab7d1ff2b97c1690.tar.lz
yuzu-eb4ce48b65f6c9ad227547daab7d1ff2b97c1690.tar.xz
yuzu-eb4ce48b65f6c9ad227547daab7d1ff2b97c1690.tar.zst
yuzu-eb4ce48b65f6c9ad227547daab7d1ff2b97c1690.zip
-rw-r--r--src/yuzu/applets/qt_web_browser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/applets/qt_web_browser.cpp b/src/yuzu/applets/qt_web_browser.cpp
index 283c04cd5..790edbb2a 100644
--- a/src/yuzu/applets/qt_web_browser.cpp
+++ b/src/yuzu/applets/qt_web_browser.cpp
@@ -52,8 +52,8 @@ QtNXWebEngineView::QtNXWebEngineView(QWidget* parent, Core::System& system,
: QWebEngineView(parent), input_subsystem{input_subsystem_},
url_interceptor(std::make_unique<UrlRequestInterceptor>()),
input_interpreter(std::make_unique<InputInterpreter>(system)),
- default_profile{QWebEngineProfile::defaultProfile()},
- global_settings{QWebEngineSettings::globalSettings()} {
+ default_profile{QWebEngineProfile::defaultProfile()}, global_settings{
+ default_profile->settings()} {
default_profile->setPersistentStoragePath(QString::fromStdString(Common::FS::PathToUTF8String(
Common::FS::GetYuzuPath(Common::FS::YuzuPath::YuzuDir) / "qtwebengine")));
@@ -78,7 +78,7 @@ QtNXWebEngineView::QtNXWebEngineView(QWidget* parent, Core::System& system,
default_profile->scripts()->insert(gamepad);
default_profile->scripts()->insert(window_nx);
- default_profile->setRequestInterceptor(url_interceptor.get());
+ default_profile->setUrlRequestInterceptor(url_interceptor.get());
global_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
global_settings->setAttribute(QWebEngineSettings::FullScreenSupportEnabled, true);