Commit 17f44b5a authored by Filipe Azevedo's avatar Filipe Azevedo

Don't run controls that get no produced workers

Change-Id: I9630620753f32934020d18266436472c869d9cd1
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 9b8169d4
......@@ -2049,7 +2049,13 @@ void ProjectExplorerPluginPrivate::executeRunConfiguration(RunConfiguration *run
QTC_ASSERT(producer, return);
auto runControl = new RunControl(runConfiguration, runMode);
(void) producer(runControl);
// A user needed interaction may have cancelled the run
// (by example asking for a process pid or server url).
if (!producer(runControl)) {
delete runControl;
return;
}
emit m_instance->aboutToExecuteProject(runConfiguration->target()->project(), runMode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment