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

Fix setup of unselected targets in targetsetuppage

parent f11a2580
......@@ -221,15 +221,20 @@ bool TargetSetupPage::setupProject(Qt4ProjectManager::Qt4Project *project)
// create the target:
Qt4Target *target = 0;
if (targetInfos.isEmpty())
target = project->targetFactory()->create(project, targetId);
else
if (!targetInfos.isEmpty())
target = project->targetFactory()->create(project, targetId, targetInfos);
if (target)
project->addTarget(target);
}
// Create the default target if nothing else was set up:
if (project->targets().isEmpty()) {
Qt4Target *target = project->targetFactory()->create(project, Constants::DESKTOP_TARGET_ID);
if (target)
project->addTarget(target);
}
return !project->targets().isEmpty();
}
......
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