Gui: Implicit capture of this is deprecated

This commit is contained in:
Chris Hennes
2025-06-22 17:03:55 -05:00
parent 661d2052b7
commit 2b03016cae

View File

@@ -451,7 +451,7 @@ MainWindow::MainWindow(QWidget * parent, Qt::WindowFlags f)
this, &MainWindow::onSetActiveSubWindow);
#else
connect(d->windowMapper, &QSignalMapper::mappedObject,
this, [=](QObject* object) {
this, [=, this](QObject* object) {
onSetActiveSubWindow(qobject_cast<QWidget*>(object));
});
#endif