forked from qt-creator/qt-creator
Don't run controls that get no produced workers
Change-Id: I9630620753f32934020d18266436472c869d9cd1 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user