Qt4ProjectManager: Add some safety code

Might, or might not fix
Task-Nr: QTCREATORBUG-2361
This commit is contained in:
dt
2010-10-25 17:26:41 +02:00
parent a96267ea12
commit af7b39e3a7
2 changed files with 5 additions and 0 deletions

View File

@@ -1299,6 +1299,7 @@ void Qt4ProFileNode::asyncUpdate()
{
m_project->incrementPendingEvaluateFutures();
setupReader();
m_parseFutureWatcher.waitForFinished();
QFuture<bool> future = QtConcurrent::run(&Qt4ProFileNode::asyncEvaluate, this);
m_parseFutureWatcher.setFuture(future);
}