forked from qt-creator/qt-creator
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:
@@ -81,9 +81,9 @@ QmlPreviewRunner::QmlPreviewRunner(const QmlPreviewRunnerSetting &settings)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this->connect(runControl(), &ProjectExplorer::RunControl::stopped, [this]() {
|
this->connect(runControl(), &ProjectExplorer::RunControl::stopped, [this]() {
|
||||||
ProjectExplorer::ProjectExplorerPlugin::runRunConfiguration(
|
auto rc = new ProjectExplorer::RunControl(ProjectExplorer::Constants::QML_PREVIEW_RUN_MODE);
|
||||||
runControl()->runConfiguration(),
|
rc->copyFromRunControl(runControl());
|
||||||
ProjectExplorer::Constants::QML_PREVIEW_RUN_MODE, true);
|
ProjectExplorer::ProjectExplorerPlugin::startRunControl(rc);
|
||||||
});
|
});
|
||||||
|
|
||||||
runControl()->initiateStop();
|
runControl()->initiateStop();
|
||||||
|
Reference in New Issue
Block a user