diff options
Diffstat (limited to 'installerbuilder/libinstaller/packagemanagergui.cpp')
-rw-r--r-- | installerbuilder/libinstaller/packagemanagergui.cpp | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/installerbuilder/libinstaller/packagemanagergui.cpp b/installerbuilder/libinstaller/packagemanagergui.cpp index 416ba398b..aa170a909 100644 --- a/installerbuilder/libinstaller/packagemanagergui.cpp +++ b/installerbuilder/libinstaller/packagemanagergui.cpp @@ -849,28 +849,11 @@ void LicenseAgreementPage::entering() m_licenseListWidget->setVisible(false); m_textBrowser->setText(QLatin1String("")); - QString notSureWhichComponentListIsNeeded; -// RunMode runMode = packageManagerCore()->runMode(); -// QList<QInstaller::Component*> components = packageManagerCore()->components(false, runMode); - -// QInstaller::Component *rootComponent = 0; -// // TODO: this needs to be fixed once we support several root components -// foreach (QInstaller::Component* root, components) { -// if (root->isInstalled()) -// continue; - -// const QHash<QString, QPair<QString, QString> > &hash = root->licenses(); -// if (!hash.isEmpty()) { -// addLicenseItem(hash); -// rootComponent = root; -// } -// } - -// components = packageManagerCore()->componentsToInstall(runMode); -// foreach (QInstaller::Component* component, components) { -// if (rootComponent != component && !component->isInstalled()) -// addLicenseItem(component->licenses()); -// } + QList<QInstaller::Component*> components = packageManagerCore()->orderedComponentsToInstall(); + + foreach (QInstaller::Component* component, components) { + addLicenseItem(component->licenses()); + } const int licenseCount = m_licenseListWidget->count(); if (licenseCount > 0) { |