forked from qt-creator/qt-creator
Allow a project to opt-out of the normal deployment configuration
Even if we supported several deployment factories, we will need a way for projects to say that the normal deployment will not work for them. Change-Id: I6d42ef22a8ff50cc6f2ec3307f2c1d3f2faf4ef9 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -265,7 +265,7 @@ DeployConfigurationFactory *DeployConfigurationFactory::find(Target *parent, Dep
|
||||
|
||||
bool DeployConfigurationFactory::canHandle(Target *parent) const
|
||||
{
|
||||
if (!parent->project()->supportsKit(parent->kit()))
|
||||
if (!parent->project()->supportsKit(parent->kit()) || parent->project()->needsSpecialDeployment())
|
||||
return false;
|
||||
return DeviceTypeKitInformation::deviceTypeId(parent->kit()) == Constants::DESKTOP_DEVICE_TYPE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user