diff options
author | Maurice Kalinowski <maurice.kalinowski@nokia.com> | 2011-07-20 16:40:57 +0200 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@nokia.com> | 2011-07-20 16:40:57 +0200 |
commit | 236705be63420c6929eb00c902ad675c020b0e3b (patch) | |
tree | e7a6cf281e71ff3f6bcbd56858357ddd013c4000 /installerbuilder/installerbase/installerbasecommons.cpp | |
parent | 9aa3be4b70a79cce3bf056e64661f3227c71634d (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.cpp | 5 |
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; } |