Perforce: Fix compiler warning

Remove unused lambda capture

Change-Id: I4beeba43bbb9edab3dcbe70c97e0e6c666d023c4
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2022-05-11 11:12:36 +02:00
parent 55951a6ca0
commit 3791d732f0

View File

@@ -240,7 +240,7 @@ PerforceSettingsPage::PerforceSettingsPage(PerforceSettings *settings)
auto errorLabel = new QLabel;
auto testButton = new QPushButton(PerforceSettings::tr("Test"));
connect(testButton, &QPushButton::clicked, this, [this, settings, errorLabel, testButton] {
connect(testButton, &QPushButton::clicked, this, [settings, errorLabel, testButton] {
testButton->setEnabled(false);
auto checker = new PerforceChecker(errorLabel);
checker->setUseOverideCursor(true);