diff --git a/src/plugins/projectexplorer/runcontrol.cpp b/src/plugins/projectexplorer/runcontrol.cpp index c3f0a153f6d..23ff5d09e6c 100644 --- a/src/plugins/projectexplorer/runcontrol.cpp +++ b/src/plugins/projectexplorer/runcontrol.cpp @@ -503,11 +503,11 @@ void RunControl::forceStop() } } -RunWorker *RunControl::createWorker(Id workerId) +RunWorker *RunControl::createWorker(Id runMode) { const Id deviceType = DeviceTypeKitAspect::deviceTypeId(d->kit); for (RunWorkerFactory *factory : std::as_const(g_runWorkerFactories)) { - if (factory->canCreate(workerId, deviceType, d->runConfigId.toString())) + if (factory->canCreate(runMode, deviceType, d->runConfigId.toString())) return factory->create(this); } return nullptr; diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index efb3abf44b8..25b8424a483 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -228,7 +228,7 @@ public: static void provideAskPassEntry(Utils::Environment &env); - RunWorker *createWorker(Utils::Id workerId); + RunWorker *createWorker(Utils::Id runMode); bool createMainWorker(); static bool canRun(Utils::Id runMode, Utils::Id deviceType, Utils::Id runConfigId);