Skip to content
GitLab
Menu
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
f088d090
Commit
f088d090
authored
Sep 29, 2010
by
Christian Kandeler
Browse files
Maemo: Fix loading of < 2.1 projects.
Task-number: QTCREATORBUG-2464 Reviewed-by: Tobias Hunger
parent
64f980a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/userfileaccessor.cpp
View file @
f088d090
...
...
@@ -1127,6 +1127,29 @@ QVariantMap Version4Handler::update(Project *, const QVariantMap &map)
while
(
targetIt
.
hasNext
())
{
targetIt
.
next
();
const
QString
&
targetKey
=
targetIt
.
key
();
if
(
targetKey
.
startsWith
(
QLatin1String
(
"ProjectExplorer.Target.RunConfiguration."
)))
{
const
QVariantMap
&
runConfigMap
=
targetIt
.
value
().
toMap
();
const
QLatin1String
maemoRcId
(
"Qt4ProjectManager.MaemoRunConfiguration"
);
if
(
runConfigMap
.
value
(
QLatin1String
(
"ProjectExplorer.ProjectConfiguration.Id"
)).
toString
()
==
maemoRcId
)
{
QVariantMap
newRunConfigMap
;
for
(
QVariantMap
::
ConstIterator
rcMapIt
=
runConfigMap
.
constBegin
();
rcMapIt
!=
runConfigMap
.
constEnd
();
++
rcMapIt
)
{
const
QLatin1String
oldProFileKey
(
".ProFile"
);
if
(
rcMapIt
.
key
()
==
oldProFileKey
)
{
newRunConfigMap
.
insert
(
maemoRcId
+
oldProFileKey
,
rcMapIt
.
value
());
}
else
{
newRunConfigMap
.
insert
(
rcMapIt
.
key
(),
rcMapIt
.
value
());
}
}
newTarget
.
insert
(
targetKey
,
newRunConfigMap
);
continue
;
}
}
if
(
!
targetKey
.
startsWith
(
QLatin1String
(
"ProjectExplorer.Target.BuildConfiguration."
)))
{
newTarget
.
insert
(
targetKey
,
targetIt
.
value
());
continue
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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