QmlJS: Fix code model update when project filelist changes.

Task-number: QTCREATORBUG-2986
Reviewed-by: Roberto Raggi
This commit is contained in:
Christian Kamm
2010-11-09 14:29:43 +01:00
parent c0da255a87
commit c6b688d4e6
2 changed files with 24 additions and 3 deletions

View File

@@ -590,9 +590,7 @@ void Qt4Project::updateQmlJSCodeModel()
return;
QmlJS::ModelManagerInterface::ProjectInfo projectInfo = modelManager->projectInfo(this);
// Not essential since the QmlJS engine parses required files on demand.
//projectInfo.sourceFiles = ...
projectInfo.sourceFiles = m_projectFiles->files[QMLType];
FindQt4ProFiles findQt4ProFiles;
QList<Qt4ProFileNode *> proFiles = findQt4ProFiles(rootProjectNode());