QmlPreview: Remove last use of RunControl::runConfiguration()

Change-Id: I7853b3bce952004abaac9145b28deb049b5d09cc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2022-04-13 17:51:17 +02:00
parent 4d8ef8d6e1
commit a06721fe71

View File

@@ -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();