forked from qt-creator/qt-creator
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:
@@ -298,6 +298,7 @@ public:
|
|||||||
setProduct<QdbDevicePerfProfilerSupport>();
|
setProduct<QdbDevicePerfProfilerSupport>();
|
||||||
addSupportedRunMode("PerfRecorder");
|
addSupportedRunMode("PerfRecorder");
|
||||||
addSupportedDeviceType(Qdb::Constants::QdbLinuxOsType);
|
addSupportedDeviceType(Qdb::Constants::QdbLinuxOsType);
|
||||||
|
addSupportedRunConfig(Constants::QdbRunConfigurationId);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -500,7 +500,7 @@ RunWorker *RunControl::createWorker(Id workerId)
|
|||||||
{
|
{
|
||||||
const Id deviceType = DeviceTypeKitAspect::deviceTypeId(d->kit);
|
const Id deviceType = DeviceTypeKitAspect::deviceTypeId(d->kit);
|
||||||
for (RunWorkerFactory *factory : std::as_const(g_runWorkerFactories)) {
|
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 factory->create(this);
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Reference in New Issue
Block a user