mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
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:
@ -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());
|
||||
|
Reference in New Issue
Block a user