From d533958aadee4e102bc65d3b133cedea99d1fb5f Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Mon, 1 Feb 2010 16:13:40 +0100 Subject: [PATCH] Check for lowercase version of build-/cleanstep keys * Looks like some version of creator does use lowercase keys:-/ --- src/plugins/projectexplorer/userfileaccessor.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/userfileaccessor.cpp b/src/plugins/projectexplorer/userfileaccessor.cpp index 37fa6804179..5ba74e3e79a 100644 --- a/src/plugins/projectexplorer/userfileaccessor.cpp +++ b/src/plugins/projectexplorer/userfileaccessor.cpp @@ -509,8 +509,12 @@ QVariantMap Version0Handler::update(Project *project, const QVariantMap &map) // buildsteps QStringList buildSteps(map.value(oldBcKey + QLatin1String("-buildsteps")).toStringList()); + + if (buildSteps.isEmpty()) + // try lowercase version, too:-( + buildSteps = map.value(QString::fromLatin1("buildconfiguration-") + bc + QLatin1String("-buildsteps")).toStringList(); if (buildSteps.isEmpty()) - buildSteps = map.value("buildsteps").toStringList(); + buildSteps = map.value(QLatin1String("buildsteps")).toStringList(); int pos(0); foreach (const QString &bs, buildSteps) { @@ -539,7 +543,10 @@ QVariantMap Version0Handler::update(Project *project, const QVariantMap &map) // cleansteps QStringList cleanSteps(map.value(oldBcKey + QLatin1String("-cleansteps")).toStringList()); if (cleanSteps.isEmpty()) - cleanSteps = map.value("cleansteps").toStringList(); + // try lowercase version, too:-( + cleanSteps = map.value(QString::fromLatin1("buildconfiguration-") + bc + QLatin1String("-cleansteps")).toStringList(); + if (cleanSteps.isEmpty()) + cleanSteps = map.value(QLatin1String("cleansteps")).toStringList(); pos = 0; foreach (const QString &bs, cleanSteps) { -- GitLab