forked from qt-creator/qt-creator
Android: Fix cloning of "Make install" step
Task-number: QTCREATORBUG-13819 Change-Id: Ibf9049cf00dfcfe25c8399c1fd39ae3b26e8fd23 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com> Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
@@ -99,7 +99,15 @@ BuildStep *AndroidPackageInstallationFactory::restore(BuildStepList *parent, con
|
|||||||
|
|
||||||
bool AndroidPackageInstallationFactory::canClone(BuildStepList *parent, BuildStep *product) const
|
bool AndroidPackageInstallationFactory::canClone(BuildStepList *parent, BuildStep *product) const
|
||||||
{
|
{
|
||||||
return canCreate(parent, product->id());
|
if (parent->id() != ProjectExplorer::Constants::BUILDSTEPS_BUILD)
|
||||||
|
return false;
|
||||||
|
if (!Android::AndroidManager::supportsAndroid(parent->target()))
|
||||||
|
return false;
|
||||||
|
if (product->id() != AndroidPackageInstallationStep::Id)
|
||||||
|
return false;
|
||||||
|
if (parent->contains(AndroidPackageInstallationStep::Id))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuildStep *AndroidPackageInstallationFactory::clone(BuildStepList *parent, BuildStep *product)
|
BuildStep *AndroidPackageInstallationFactory::clone(BuildStepList *parent, BuildStep *product)
|
||||||
|
Reference in New Issue
Block a user