forked from qt-creator/qt-creator
qmljs: load qmltypes even if there is no plugin
Change-Id: Ib193113c2c6bf085765d20e4f8d0b89b43cca0e1 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -462,7 +462,7 @@ bool LinkPrivate::importLibrary(Document::Ptr doc,
|
||||
if (const UiImport *ast = importInfo.ast())
|
||||
errorLoc = locationFromRange(ast->firstSourceLocation(), ast->lastSourceLocation());
|
||||
|
||||
if (!libraryInfo.plugins().isEmpty()) {
|
||||
if (!libraryInfo.plugins().isEmpty() || !libraryInfo.typeInfos().isEmpty()) {
|
||||
if (libraryInfo.pluginTypeInfoStatus() == LibraryInfo::NoTypeInfo) {
|
||||
ModelManagerInterface *modelManager = ModelManagerInterface::instance();
|
||||
if (modelManager) {
|
||||
|
Reference in New Issue
Block a user