Commit 37a33605 authored by Daniel Teske's avatar Daniel Teske

Android: Fix cloning of "Make install" step

Task-number: QTCREATORBUG-13819
Change-Id: Ibf9049cf00dfcfe25c8399c1fd39ae3b26e8fd23
Reviewed-by: default avatarEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Reviewed-by: default avatarBogDan Vatra <bogdan@kde.org>
parent 230be994
......@@ -99,7 +99,15 @@ BuildStep *AndroidPackageInstallationFactory::restore(BuildStepList *parent, con
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment