Remove unused lambda capture

This commit is contained in:
Chocobo1 2021-03-05 22:17:55 +08:00 committed by sledgehammer999
parent 3d0ca83474
commit 9c664d04ae
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -1926,7 +1926,7 @@ void MainWindow::handleUpdateCheckFinished(ProgramUpdater *updater, const bool i
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->setAttribute(Qt::WA_ShowWithoutActivating);
msgBox->setDefaultButton(QMessageBox::Yes);
connect(msgBox, &QMessageBox::buttonClicked, this, [this, msgBox, updater](QAbstractButton *button)
connect(msgBox, &QMessageBox::buttonClicked, this, [msgBox, updater](QAbstractButton *button)
{
if (msgBox->buttonRole(button) == QMessageBox::YesRole)
{