forked from qt-creator/qt-creator
QbsProjectManager: Fix build
BuildStepList: :allOfType() was newly used in 4.10 and removed in 4.11. Change-Id: I3129f4a8aa411547e018c88eec02df58f56285f9 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -468,10 +468,12 @@ FilePath QbsProject::installRoot()
|
||||
return FilePath();
|
||||
const auto dc = activeTarget()->activeDeployConfiguration();
|
||||
if (dc) {
|
||||
const QList<QbsInstallStep *> qbsInstallSteps = dc->stepList()->allOfType<QbsInstallStep>();
|
||||
for (QbsInstallStep * const step : qbsInstallSteps) {
|
||||
if (step->enabled())
|
||||
return FilePath::fromString(step->installRoot());
|
||||
const QList<BuildStep *> steps = dc->stepList()->steps();
|
||||
for (const BuildStep * const step : steps) {
|
||||
if (!step->enabled())
|
||||
continue;
|
||||
if (const auto qbsInstallStep = qobject_cast<const QbsInstallStep *>(step))
|
||||
return FilePath::fromString(qbsInstallStep->installRoot());
|
||||
}
|
||||
}
|
||||
const auto * const bc
|
||||
|
Reference in New Issue
Block a user