Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8994 from JosJuice/nkit-pointer-reference
DolphinQt: Don't capture local pointer by reference
  • Loading branch information
delroth committed Jul 31, 2020
2 parents 0f4cf4a + 13f20ec commit 37827ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt/NKitWarningDialog.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 37827ef

Please sign in to comment.