forked from qt-creator/qt-creator
ProjectExplorer: Reduce use of Runnable in SimpleTargetRunner
Runnable functionality is nowadays mostly accessed more directly in QtcProcess and its setup functions. Change-Id: I2a2b5433aef1d464dc58d5a35069376dee051d57 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -120,16 +120,14 @@ public:
|
||||
auto portsGatherer = new PortsGatherer(runControl);
|
||||
addStartDependency(portsGatherer);
|
||||
|
||||
setStarter([this, runControl, portsGatherer] {
|
||||
Runnable r;
|
||||
setStartModifier([this, runControl, portsGatherer] {
|
||||
const QString browserId =
|
||||
runControl->aspect<WebBrowserSelectionAspect>()->currentBrowser;
|
||||
r.command = emrunCommand(runControl->target(),
|
||||
runControl->buildKey(),
|
||||
browserId,
|
||||
QString::number(portsGatherer->findEndPoint().port()));
|
||||
r.environment = runControl->buildEnvironment();
|
||||
SimpleTargetRunner::doStart(r);
|
||||
setCommandLine(emrunCommand(runControl->target(),
|
||||
runControl->buildKey(),
|
||||
browserId,
|
||||
QString::number(portsGatherer->findEndPoint().port())));
|
||||
setEnvironment(runControl->buildEnvironment());
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user