From 3b233033b9c75b41d77c59786ddad7a220ac515f Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 19 Jul 2016 16:17:35 +0200 Subject: [PATCH] QmlProfiler: Add a "this" to capture list Change-Id: I8bd7b0a8e488ee79262a46406f818d86326aabda Reviewed-by: Ulf Hermann --- src/plugins/qmlprofiler/qmlprofilertool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 5233733fe4e..b98c47e8a7f 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -374,7 +374,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunControl *runControl) connect(runControl, &QmlProfilerRunControl::processRunning, d->m_profilerConnections, &QmlProfilerClientManager::connectTcpClient); connect(clientManager, &QmlProfilerClientManager::connectionFailed, - runControl, [clientManager, runControl]() { + runControl, [this, clientManager, runControl]() { QMessageBox *infoBox = new QMessageBox(ICore::mainWindow()); infoBox->setIcon(QMessageBox::Critical); infoBox->setWindowTitle(tr("Qt Creator"));