From 13f20ecd340136786d2709722e75650c01b015d8 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 31 Jul 2020 11:33:48 +0200 Subject: [PATCH] DolphinQt: Don't capture local pointer by reference This may be the cause of a crash that has been reported on the forums, but I'm not sure since I can't reproduce it myself. --- Source/Core/DolphinQt/NKitWarningDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/NKitWarningDialog.cpp b/Source/Core/DolphinQt/NKitWarningDialog.cpp index 3b8a821b8a..85d69aeeb1 100644 --- a/Source/Core/DolphinQt/NKitWarningDialog.cpp +++ b/Source/Core/DolphinQt/NKitWarningDialog.cpp @@ -79,7 +79,7 @@ NKitWarningDialog::NKitWarningDialog(QWidget* parent) : QDialog(parent) ok->setEnabled(false); connect(checkbox_accept, &QCheckBox::stateChanged, - [&ok](int state) { ok->setEnabled(state == Qt::Checked); }); + [ok](int state) { ok->setEnabled(state == Qt::Checked); }); connect(this, &QDialog::accepted, [checkbox_skip] { Config::SetBase(Config::MAIN_SKIP_NKIT_WARNING, checkbox_skip->isChecked());