diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 250c1360a85..3de34a20476 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1797,6 +1797,7 @@ int ProjectExplorerPlugin::queue(QList projects, QStringList stepIds) return -1; QList stepLists; + QStringList names; foreach (const QString id, stepIds) { foreach (Project *pro, projects) { if (!pro || !pro->activeTarget()) @@ -1811,16 +1812,13 @@ int ProjectExplorerPlugin::queue(QList projects, QStringList stepIds) if (!bsl || bsl->isEmpty()) continue; stepLists << bsl; + names << displayNameForStepId(id); } } if (stepLists.isEmpty()) return 0; - QStringList names; - foreach (const QString &stepId, stepIds) - names << displayNameForStepId(stepId); - if (!d->m_buildManager->buildLists(stepLists, names)) return -1; return stepLists.count();