forked from qt-creator/qt-creator
CMakeProjectManager: Robustify buildAndRunOnSameDevice helper
Change-Id: Ib3559f81f2ff71ad5fc04d982ad6286df0d4390e Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -174,6 +174,8 @@ static bool buildAndRunOnSameDevice(Kit *kit)
|
||||
{
|
||||
IDeviceConstPtr runDevice = DeviceKitAspect::device(kit);
|
||||
IDeviceConstPtr buildDevice = BuildDeviceKitAspect::device(kit);
|
||||
QTC_ASSERT(runDevice, return false);
|
||||
QTC_ASSERT(buildDevice, return false);
|
||||
return runDevice->id() == buildDevice->id();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user