Commit fd2daeab authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Do not use shadowbuilding in projects from 1.3

Do not turn on shadow building when importing projects created
(and last opened) by creator <1.3

Task-number: QTCREATORBUG-2231
parent 1f0b600b
......@@ -493,7 +493,6 @@ QVariantMap Version0Handler::convertBuildConfigurations(Project *project, const
qWarning() << "Unknown BuildConfiguration Key found:" << i.key() << i.value();
qWarning() << "BuildConfiguration Id is:" << id;
}
return result;
}
......@@ -919,9 +918,13 @@ QVariantMap Version1Handler::update(Project *project, const QVariantMap &map)
targetMap.insert(QLatin1String("ProjectExplorer.Target.BuildConfigurationCount"), count);
for (int i = 0; i < count; ++i) {
QString key(QString::fromLatin1("ProjectExplorer.Project.BuildConfiguration.") + QString::number(i));
if (map.contains(key))
if (map.contains(key)) {
QVariantMap bcMap = map.value(key).toMap();
if (!bcMap.contains(QLatin1String("Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild")))
bcMap.insert(QLatin1String("Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild"), false);
targetMap.insert(QString::fromLatin1("ProjectExplorer.Target.BuildConfiguration.") + QString::number(i),
map.value(key));
bcMap);
}
}
count = map.value(QLatin1String("ProjectExplorer.Project.RunConfigurationCount")).toInt();
......
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