Fix that build device was always set to Local Host

Copy and paste error from DeviceKitAspect. The build device has nothing
todo with the target device, so it doesn't need to be compatible with
the target device type.

Amends ec5e060a07

Fixes: QTCREATORBUG-27242
Change-Id: Iab9ae4c9adc98a177d15de705bc07406419f85e1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2022-04-01 15:01:05 +02:00
parent b2a34f3fcf
commit b2ae521892

View File

@@ -1244,7 +1244,7 @@ void BuildDeviceKitAspect::setup(Kit *k)
{ {
QTC_ASSERT(DeviceManager::instance()->isLoaded(), return ); QTC_ASSERT(DeviceManager::instance()->isLoaded(), return );
IDevice::ConstPtr dev = BuildDeviceKitAspect::device(k); IDevice::ConstPtr dev = BuildDeviceKitAspect::device(k);
if (!dev.isNull() && dev->isCompatibleWith(k)) if (!dev.isNull())
return; return;
dev = defaultDevice(); dev = defaultDevice();