From a465bf30a7292ca5b088b8aaea4c8a34e98583ee Mon Sep 17 00:00:00 2001 From: AMZN-Phil Date: Thu, 18 Nov 2021 17:30:52 -0800 Subject: [PATCH] Iterate over dependent gems Signed-off-by: AMZN-Phil --- Code/Tools/ProjectManager/Source/GemCatalog/GemModel.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Code/Tools/ProjectManager/Source/GemCatalog/GemModel.cpp b/Code/Tools/ProjectManager/Source/GemCatalog/GemModel.cpp index ca9be341c6..d163ab9076 100644 --- a/Code/Tools/ProjectManager/Source/GemCatalog/GemModel.cpp +++ b/Code/Tools/ProjectManager/Source/GemCatalog/GemModel.cpp @@ -494,15 +494,10 @@ namespace O3DE::ProjectManager // we need to deactivate all gems that depend on this one for (auto dependentModelIndex : dependentGems) { - DeactivateDependentGems(model, dependentModelIndex); + SetIsAdded(model, dependentModelIndex, false); } } - else - { - // Deactivate this gem - SetIsAdded(model, modelIndex, false); - } } void GemModel::SetDownloadStatus(QAbstractItemModel& model, const QModelIndex& modelIndex, GemInfo::DownloadStatus status)