Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
e68e3f16
Commit
e68e3f16
authored
Mar 30, 2010
by
Tobias Hunger
Browse files
Fix setup of unselected targets in targetsetuppage
parent
f11a2580
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp
View file @
e68e3f16
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment