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.
This commit is contained in:
JosJuice 2020-07-31 11:33:48 +02:00
parent 0f4cf4a84d
commit 13f20ecd34
1 changed files with 1 additions and 1 deletions

View File

@ -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());