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

Target: Fix loading of multiple deploy configurations of the same kind



Task-number: QTCREATORBUG-10923

Change-Id: I3ae4961225604d51864cf78f0e633c82e55aa2d8
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 87e2e5b9
......@@ -551,15 +551,16 @@ void Target::updateDefaultDeployConfigurations()
dcIds.append(dcFactory->availableCreationIds(this));
QList<DeployConfiguration *> dcList = deployConfigurations();
QList<Core::Id> toCreate = dcIds;
foreach (DeployConfiguration *dc, dcList) {
if (dcIds.contains(dc->id()))
dcIds.removeOne(dc->id());
toCreate.removeOne(dc->id());
else
removeDeployConfiguration(dc);
}
foreach (Core::Id id, dcIds) {
foreach (Core::Id id, toCreate) {
foreach (DeployConfigurationFactory *dcFactory, dcFactories) {
if (dcFactory->canCreate(this, id)) {
DeployConfiguration *dc = dcFactory->create(this, id);
......
Supports Markdown
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