Browse Source

Remove unused lambda capture

adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
12938799a6
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/mainwindow.cpp

2
src/gui/mainwindow.cpp

@ -1926,7 +1926,7 @@ void MainWindow::handleUpdateCheckFinished(ProgramUpdater *updater, const bool i @@ -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)
{

Loading…
Cancel
Save