diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2011-07-26 17:03:45 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2011-07-27 14:26:07 +0200 |
commit | 308dc03e51cbfe66506b93e6b37c8429a971eb27 (patch) | |
tree | 5d9f91ef2506311e733e98a0be5ac7811cf7c31b /installerbuilder/libinstaller/packagemanagercore.cpp | |
parent | dd8059807655d7d5c1bbcf7872a62fbf43d89b72 (diff) |
preselect only installed components
Reviewed-By: Niels Weber
Diffstat (limited to 'installerbuilder/libinstaller/packagemanagercore.cpp')
-rw-r--r-- | installerbuilder/libinstaller/packagemanagercore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installerbuilder/libinstaller/packagemanagercore.cpp b/installerbuilder/libinstaller/packagemanagercore.cpp index 38246e89e..c69afc67e 100644 --- a/installerbuilder/libinstaller/packagemanagercore.cpp +++ b/installerbuilder/libinstaller/packagemanagercore.cpp @@ -693,7 +693,7 @@ bool PackageManagerCore::fetchLocalPackagesTree() QList<Component*> children = rootComponent(i)->childs(); foreach (Component *child, children) { if (child->isCheckable() && !child->isTristate()) { - if (child->isInstalled() || child->isDefault()) + if (child->isInstalled()) child->setCheckState(Qt::Checked); } } @@ -1590,7 +1590,7 @@ bool PackageManagerCore::fetchAllPackages(const PackagesList &remotes, const Loc // set the checked state for all components without child(means without tristate) if (component->isCheckable() && !component->isTristate()) { - if (component->isInstalled() || component->isDefault()) + if (component->isInstalled()) component->setCheckState(Qt::Checked); } } |