summaryrefslogtreecommitdiffstats
path: root/installerbuilder/installerbase/installerbasecommons.cpp
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@nokia.com>2011-07-20 16:40:57 +0200
committerMaurice Kalinowski <maurice.kalinowski@nokia.com>2011-07-20 16:40:57 +0200
commit236705be63420c6929eb00c902ad675c020b0e3b (patch)
treee7a6cf281e71ff3f6bcbd56858357ddd013c4000 /installerbuilder/installerbase/installerbasecommons.cpp
parent9aa3be4b70a79cce3bf056e64661f3227c71634d (diff)
break if license is found
no need to iterate through the remaining components if we know that we need to display the license page Reviewed-By: Tim Jenssen
Diffstat (limited to 'installerbuilder/installerbase/installerbasecommons.cpp')
-rw-r--r--installerbuilder/installerbase/installerbasecommons.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/installerbuilder/installerbase/installerbasecommons.cpp b/installerbuilder/installerbase/installerbasecommons.cpp
index 81ec5f83e..2b6276da7 100644
--- a/installerbuilder/installerbase/installerbasecommons.cpp
+++ b/installerbuilder/installerbase/installerbasecommons.cpp
@@ -410,7 +410,10 @@ int MaintenanceGui::nextId() const
foreach (Component* component, components) {
if (component->isInstalled())
continue;
- foundLicense |= !component->licenses().isEmpty();
+ if (!component->licenses().isEmpty()) {
+ foundLicense = true;
+ break;
+ }
}
return foundLicense ? next : nextNextId;
}