diff options
author | hjk <hjk@qt.io> | 2019-03-13 18:09:27 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-03-18 09:43:46 +0000 |
commit | 60f18b6170b7db446754bd9901c809ca69747345 (patch) | |
tree | 76732b63d18089d3a9f945ce3d3785598b140932 /src/plugins/qmlpreview | |
parent | 330af3309cff790a1b6acee608e5cebb1b0fddec (diff) |
Limit scope of uses of RunControl::runConfiguration()
Change-Id: Iccd9c0ce869060367db606b3c338bf21b2299548
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlpreview')
-rw-r--r-- | src/plugins/qmlpreview/qmlpreviewruncontrol.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp b/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp index 6d540c184b..81532553db 100644 --- a/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp +++ b/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp @@ -74,14 +74,14 @@ QmlPreviewRunner::QmlPreviewRunner(ProjectExplorer::RunControl *runControl, }); connect(m_connectionManager.data(), &Internal::QmlPreviewConnectionManager::restart, - runControl, [runControl, this]() { + runControl, [runControl]() { if (!runControl->isRunning()) return; - ProjectExplorer::RunConfiguration *runConfig = runControl->runConfiguration(); - connect(runControl, &ProjectExplorer::RunControl::stopped, runConfig, [runConfig](){ + connect(runControl, &ProjectExplorer::RunControl::stopped, runControl, [runControl]() { ProjectExplorer::ProjectExplorerPlugin::runRunConfiguration( - runConfig, ProjectExplorer::Constants::QML_PREVIEW_RUN_MODE, true); + runControl->runConfiguration(), + ProjectExplorer::Constants::QML_PREVIEW_RUN_MODE, true); }); runControl->initiateStop(); |