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);
if (!targetInfos.isEmpty())
target = project->targetFactory()->create(project, targetId, targetInfos);
if (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)
return !project->targets().isEmpty();
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