summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/componentmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/componentmodel.cpp')
-rw-r--r--src/libs/installer/componentmodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/installer/componentmodel.cpp b/src/libs/installer/componentmodel.cpp
index d4536e249..5285154f6 100644
--- a/src/libs/installer/componentmodel.cpp
+++ b/src/libs/installer/componentmodel.cpp
@@ -399,10 +399,6 @@ void ComponentModel::slotModelReset()
m_initialCheckedState[component->checkState()].insert(component);
}
- // update all checked components uncompressed size (important for nodes)
- foreach (QInstaller::Component *component, checked)
- component->updateUncompressedSize();
-
m_currentCheckedState = m_initialCheckedState;
updateAndEmitModelState(); // update the internal state
}
@@ -524,6 +520,10 @@ QSet<QModelIndex> ComponentModel::updateCheckedState(const ComponentSet &compone
break;
}
}
+
+ // update all nodes uncompressed size
+ foreach (Component *const node, m_rootComponentList)
+ node->updateUncompressedSize(); // this is a recursive call
return changed;
}