From a06721fe7176cff760dfc188c5da7547fc68b94e Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 13 Apr 2022 17:51:17 +0200 Subject: [PATCH] QmlPreview: Remove last use of RunControl::runConfiguration() Change-Id: I7853b3bce952004abaac9145b28deb049b5d09cc Reviewed-by: Thomas Hartmann Reviewed-by: --- src/plugins/qmlpreview/qmlpreviewruncontrol.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp b/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp index 23eeb0b33e0..c37b5abf152 100644 --- a/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp +++ b/src/plugins/qmlpreview/qmlpreviewruncontrol.cpp @@ -81,9 +81,9 @@ QmlPreviewRunner::QmlPreviewRunner(const QmlPreviewRunnerSetting &settings) return; this->connect(runControl(), &ProjectExplorer::RunControl::stopped, [this]() { - ProjectExplorer::ProjectExplorerPlugin::runRunConfiguration( - runControl()->runConfiguration(), - ProjectExplorer::Constants::QML_PREVIEW_RUN_MODE, true); + auto rc = new ProjectExplorer::RunControl(ProjectExplorer::Constants::QML_PREVIEW_RUN_MODE); + rc->copyFromRunControl(runControl()); + ProjectExplorer::ProjectExplorerPlugin::startRunControl(rc); }); runControl()->initiateStop();