summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jls472021-07-17 17:44:20 -0700
committerGravatar Morph2021-07-27 11:31:12 -0400
commitef29ed75b0f849b8eb5beeac3064557762e0c82b (patch)
tree747d5972ac99117cbecfb3ff9816ff5c4c9e28b9
parentqt_web_browser: Focus on the first link element (diff)
downloadyuzu-ef29ed75b0f849b8eb5beeac3064557762e0c82b.tar.gz
yuzu-ef29ed75b0f849b8eb5beeac3064557762e0c82b.tar.xz
yuzu-ef29ed75b0f849b8eb5beeac3064557762e0c82b.zip
qt_web_browser: Fix lambda capture for HIDButton
-rw-r--r--src/yuzu/applets/qt_web_browser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/applets/qt_web_browser.cpp b/src/yuzu/applets/qt_web_browser.cpp
index cc1a42f74..652d99570 100644
--- a/src/yuzu/applets/qt_web_browser.cpp
+++ b/src/yuzu/applets/qt_web_browser.cpp
@@ -210,7 +210,7 @@ void QtNXWebEngineView::HandleWindowFooterButtonPressedOnce() {
210 if (input_interpreter->IsButtonPressedOnce(button)) { 210 if (input_interpreter->IsButtonPressedOnce(button)) {
211 page()->runJavaScript( 211 page()->runJavaScript(
212 QStringLiteral("yuzu_key_callbacks[%1] == null;").arg(static_cast<u8>(button)), 212 QStringLiteral("yuzu_key_callbacks[%1] == null;").arg(static_cast<u8>(button)),
213 [&](const QVariant& variant) { 213 [this, button](const QVariant& variant) {
214 if (variant.toBool()) { 214 if (variant.toBool()) {
215 switch (button) { 215 switch (button) {
216 case HIDButton::A: 216 case HIDButton::A: