forked from qt-creator/qt-creator
QmlJS: Don't add invalid imports to TypeEnvironment.
Done-with: Fawzi Mohamed
This commit is contained in:
@@ -209,7 +209,8 @@ void Link::populateImportedTypes(TypeEnvironment *typeEnv, Document::Ptr doc)
|
||||
if (import.object)
|
||||
d->importCache.insert(ImportCacheKey(info), import);
|
||||
}
|
||||
typeEnv->addImport(import);
|
||||
if (import.object)
|
||||
typeEnv->addImport(import);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user