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
90c1b182
Commit
90c1b182
authored
Oct 25, 2010
by
dt
Browse files
Fix double listing of files
Reviewed-By: con Task-Nr: QTCREATORBUG-2729
parent
4a1f15db
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt4nodes.cpp
View file @
90c1b182
...
...
@@ -588,6 +588,9 @@ void Qt4PriFileNode::update(ProFile *includeFileExact, ProFileReader *readerExac
m_recursiveEnumerateFiles
+=
recursiveEnumerate
(
folder
);
}
QMap
<
FileType
,
QSet
<
QString
>
>
foundFiles
;
// update files
for
(
int
i
=
0
;
i
<
fileTypes
.
size
();
++
i
)
{
FileType
type
=
fileTypes
.
at
(
i
).
type
;
...
...
@@ -604,6 +607,13 @@ void Qt4PriFileNode::update(ProFile *includeFileExact, ProFileReader *readerExac
}
foundFiles
[
type
]
=
newFilePaths
;
m_recursiveEnumerateFiles
.
subtract
(
newFilePaths
);
}
for
(
int
i
=
0
;
i
<
fileTypes
.
size
();
++
i
)
{
FileType
type
=
fileTypes
.
at
(
i
).
type
;
QSet
<
QString
>
newFilePaths
=
foundFiles
[
type
];
newFilePaths
+=
filterFiles
(
type
,
m_recursiveEnumerateFiles
);
// We only need to save this information if
...
...
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