From 8586747cbea1e92dce161194a0fe743da4fedd6a Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Fri, 1 Apr 2011 13:19:57 +0200
Subject: [PATCH] ProjectExplorer: Rebuilding wiht dependencies cleans all then
 builds all

Task-Nr: QTCREATORBUG-2421

Reviewed-By: hunger
---
 src/plugins/projectexplorer/projectexplorer.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index af08b0bf26a..20c269128ee 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -1662,10 +1662,10 @@ int ProjectExplorerPlugin::queue(QList<Project *> projects, QStringList stepIds)
         return -1;
 
     QList<BuildStepList *> stepLists;
-    foreach (Project *pro, projects) {
-        if (!pro || !pro->activeTarget())
-            continue;
-        foreach (const QString id, stepIds) {
+    foreach (const QString id, stepIds) {
+        foreach (Project *pro, projects) {
+            if (!pro || !pro->activeTarget())
+                continue;
             BuildStepList *bsl = 0;
             if (id == Core::Id(Constants::BUILDSTEPS_DEPLOY)
                 && pro->activeTarget()->activeDeployConfiguration())
-- 
GitLab