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:
parent
0f4cf4a84d
commit
13f20ecd34
|
@ -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