summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libs/installer/componentmodel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libs/installer/componentmodel.cpp b/src/libs/installer/componentmodel.cpp
index 57fc05181..e445bd089 100644
--- a/src/libs/installer/componentmodel.cpp
+++ b/src/libs/installer/componentmodel.cpp
@@ -580,13 +580,9 @@ QSet<QModelIndex> ComponentModel::updateCheckedState(const ComponentSet &compone
if (node->value(scCheckable, scTrue).toLower() == scFalse) {
checkable = false;
}
- // Let the check state to be checked up if the node is installed even if the component is not
- // selectable/enabled or is installed as autodependency. Otherwise the node might not be selected
- // and installer thinks it should be uninstalled.
- if (!node->isInstalled() &&
- ((!node->isCheckable() && checkable) || !node->isEnabled() || !node->autoDependencies().isEmpty())) {
+
+ if ((!node->isCheckable() && checkable) || !node->isEnabled() || !node->autoDependencies().isEmpty())
continue;
- }
Qt::CheckState newState = state;
const Qt::CheckState recentState = node->checkState();