diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-10-06 15:58:43 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-10-06 16:05:51 +0200 |
commit | 62cf969c09ef821a0f8153e2fd9538c6664e8bef (patch) | |
tree | 6f07ab78f708e230b80b8f0393817a8702c5216b /src/libs/installer/componentmodel.cpp | |
parent | 0d529d9a8920ba308897c2ca3c69ac98109b0340 (diff) |
Rewrite the component getter mess, remove superfluous methods.
Now we can combine some enum values to achieve the same as before
with the several getter functions, removes the clutter from the API.
Change-Id: I6368b0ff77821ac95d1defaec4af27dd7d383396
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Diffstat (limited to 'src/libs/installer/componentmodel.cpp')
-rw-r--r-- | src/libs/installer/componentmodel.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libs/installer/componentmodel.cpp b/src/libs/installer/componentmodel.cpp index 17da07a04..98b6f884d 100644 --- a/src/libs/installer/componentmodel.cpp +++ b/src/libs/installer/componentmodel.cpp @@ -416,11 +416,7 @@ void ComponentModel::slotModelReset() void ComponentModel::onVirtualStateChanged() { // If the virtual state of a component changes, force a reset of the component model. - // Make sure to pass the right components list depending on the package manager run mode. - if (m_core->isUpdater()) - setRootComponents(m_core->updaterComponents()); - else - setRootComponents(m_core->rootComponents()); + setRootComponents(m_core->components(PackageManagerCore::ComponentType::Root)); } |