Fix warning: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20

This commit is contained in:
Pokechu22 2023-02-02 14:45:28 -08:00
parent af5013b60f
commit b316ce6fdd
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ void SkylanderPortalWindow::CreateMainWindow()
checkbox_layout->setAlignment(Qt::AlignHCenter);
m_checkbox = new QCheckBox(tr("Emulate Skylander Portal"), this);
m_checkbox->setChecked(Config::Get(Config::MAIN_EMULATE_SKYLANDER_PORTAL));
connect(m_checkbox, &QCheckBox::toggled, [=](bool checked) { EmulatePortal(checked); });
connect(m_checkbox, &QCheckBox::toggled, [&](bool checked) { EmulatePortal(checked); });
checkbox_layout->addWidget(m_checkbox);
checkbox_group->setLayout(checkbox_layout);
main_layout->addWidget(checkbox_group);