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
Marco Bubke
flatpak-qt-creator
Commits
bddf21c5
Commit
bddf21c5
authored
Feb 19, 2010
by
Tobias Hunger
Browse files
qWarning when failing to create default target settings
parent
175b43ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/projectloadwizard.cpp
View file @
bddf21c5
...
...
@@ -130,6 +130,8 @@ void ProjectLoadWizard::done(int result)
continue
;
m_project
->
addTarget
(
t
);
}
if
(
m_project
->
targets
().
isEmpty
())
qWarning
()
<<
"Failed to populate project with default targets for imported Qt"
<<
m_importVersion
->
displayName
();
}
else
{
// Not importing
if
(
m_temporaryVersion
)
...
...
@@ -138,13 +140,13 @@ void ProjectLoadWizard::done(int result)
// Find a Qt version:
QList
<
QtVersion
*>
candidates
=
vm
->
versions
();
QtVersion
*
defaultVersion
=
candidates
.
at
(
0
);
// always there and always valid!
// Check for the first valid desktop-Qt, fall back to any valid Qt if no desktop
// flavour is available.
foreach
(
QtVersion
*
v
,
candidates
)
{
if
(
v
->
isValid
())
defaultVersion
=
v
;
if
(
v
->
supportsTargetId
(
DESKTOP_TARGET_ID
)
&&
v
->
isValid
())
{
defaultVersion
=
v
;
if
(
v
->
supportsTargetId
(
DESKTOP_TARGET_ID
)
&&
v
->
isValid
())
break
;
}
}
foreach
(
const
QString
&
id
,
defaultVersion
->
supportedTargetIds
())
{
...
...
@@ -153,6 +155,8 @@ void ProjectLoadWizard::done(int result)
continue
;
m_project
->
addTarget
(
t
);
}
if
(
m_project
->
targets
().
isEmpty
())
qWarning
()
<<
"Failed to populate project with default targets for default Qt"
<<
m_importVersion
->
displayName
();
}
}
...
...
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