Merge pull request #8994 from JosJuice/nkit-pointer-reference
DolphinQt: Don't capture local pointer by reference
This commit is contained in:
commit
37827ef134
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue