Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
99805d3c
Commit
99805d3c
authored
Mar 11, 2009
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prune the list of the futures.
parent
047e5af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/plugins/cpptools/cppmodelmanager.cpp
src/plugins/cpptools/cppmodelmanager.cpp
+11
-0
No files found.
src/plugins/cpptools/cppmodelmanager.cpp
View file @
99805d3c
...
...
@@ -712,6 +712,17 @@ QFuture<void> CppModelManager::refreshSourceFiles(const QStringList &sourceFiles
QFuture
<
void
>
result
=
QtConcurrent
::
run
(
&
CppModelManager
::
parse
,
preproc
,
sourceFiles
);
if
(
m_synchronizer
.
futures
().
size
()
>
10
)
{
QList
<
QFuture
<
void
>
>
futures
=
m_synchronizer
.
futures
();
m_synchronizer
.
clearFutures
();
foreach
(
QFuture
<
void
>
future
,
futures
)
{
if
(
!
(
future
.
isFinished
()
||
future
.
isCanceled
()))
m_synchronizer
.
addFuture
(
future
);
}
}
m_synchronizer
.
addFuture
(
result
);
if
(
sourceFiles
.
count
()
>
1
)
{
...
...
Write
Preview
Markdown
is supported
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