Commit 263d98b8 authored by Yuchen Deng's avatar Yuchen Deng Committed by Daniel Teske

Fix crash of 'Build All'

Change-Id: I70d415783da28aa91bdd4f97207aade5aa3e0a1c
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent b7c24130
......@@ -1797,6 +1797,7 @@ int ProjectExplorerPlugin::queue(QList<Project *> projects, QStringList stepIds)
return -1;
QList<BuildStepList *> stepLists;
QStringList names;
foreach (const QString id, stepIds) {
foreach (Project *pro, projects) {
if (!pro || !pro->activeTarget())
......@@ -1811,16 +1812,13 @@ int ProjectExplorerPlugin::queue(QList<Project *> 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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment