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
6a6e0091
Commit
6a6e0091
authored
Jun 08, 2010
by
Oswald Buddenhagen
Browse files
consolidate the subdir name data path
every path should be separator-fixed Reviewed-by: dt
parent
fc421df1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt4nodes.cpp
View file @
6a6e0091
...
...
@@ -1425,16 +1425,15 @@ QStringList Qt4ProFileNode::subDirsPaths(ProFileReader *reader) const
const
QString
subDirKey
=
subDirVar
+
QLatin1String
(
".subdir"
);
const
QString
subDirFileKey
=
subDirVar
+
QLatin1String
(
".file"
);
if
(
reader
->
contains
(
subDirKey
))
realDir
=
QFileInfo
(
reader
->
value
(
subDirKey
)
).
filePath
()
;
realDir
=
reader
->
value
(
subDirKey
);
else
if
(
reader
->
contains
(
subDirFileKey
))
realDir
=
QFileInfo
(
reader
->
value
(
subDirFileKey
)
).
filePath
()
;
realDir
=
reader
->
value
(
subDirFileKey
);
else
realDir
=
subDirVar
;
QFileInfo
info
(
realDir
);
if
(
!
info
.
isAbsolute
())
{
if
(
!
info
.
isAbsolute
())
info
.
setFile
(
m_projectDir
+
QLatin1Char
(
'/'
)
+
realDir
);
realDir
=
m_projectDir
+
QLatin1Char
(
'/'
)
+
realDir
;
}
realDir
=
info
.
filePath
();
QString
realFile
;
if
(
info
.
isDir
())
{
...
...
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