Skip to content
Permalink
Browse files
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.
@@ -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());

0 comments on commit 37827ef

Please sign in to comment.