Cancel a previous update code model

This commit is contained in:
dt
2010-03-02 12:51:47 +01:00
parent ab8fc52d0b
commit 90c1c8f54d
5 changed files with 8 additions and 6 deletions

View File

@@ -403,7 +403,7 @@ void Qt4Project::updateCodeModel()
if (debug)
qDebug()<<"Qt4Project::updateCodeModel()";
// TODO cancel still running indexing
m_codeModelFuture.cancel();
if (!activeTarget() || !activeTarget()->activeBuildConfiguration())
return;
@@ -576,7 +576,7 @@ void Qt4Project::updateCodeModel()
pinfo.precompiledHeaders = allPrecompileHeaders;
modelmanager->updateProjectInfo(pinfo);
modelmanager->updateSourceFiles(pinfo.sourceFiles);
m_codeModelFuture = modelmanager->updateSourceFiles(pinfo.sourceFiles);
}
}