RunControl: Also check for a matching runConfig when creating a RunWorker

Change-Id: Ic26b41e878ed2b8b20099b62ed1c122966165665
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Dominik Holland
2024-03-07 16:59:16 +01:00
parent 1d0246a89a
commit 7561612b3a
2 changed files with 2 additions and 1 deletions

View File

@@ -298,6 +298,7 @@ public:
setProduct<QdbDevicePerfProfilerSupport>();
addSupportedRunMode("PerfRecorder");
addSupportedDeviceType(Qdb::Constants::QdbLinuxOsType);
addSupportedRunConfig(Constants::QdbRunConfigurationId);
}
};

View File

@@ -500,7 +500,7 @@ RunWorker *RunControl::createWorker(Id workerId)
{
const Id deviceType = DeviceTypeKitAspect::deviceTypeId(d->kit);
for (RunWorkerFactory *factory : std::as_const(g_runWorkerFactories)) {
if (factory->canCreate(workerId, deviceType, QString()))
if (factory->canCreate(workerId, deviceType, d->runConfigId.toString()))
return factory->create(this);
}
return nullptr;