forked from qt-creator/qt-creator
QmlJS: Fix bug with async typeinfo loading
There were infinite loading loops, because the unupdated LibraryInfo was written to the ModelManager. Change-Id: I22faf017a2c9370e97042152cddc872a3d35fb77 Reviewed-by: Christian Kamm <mail@ckamm.de> Reviewed-by: Philip Van Hoof <philip@codeminded.be>
This commit is contained in:
@@ -553,7 +553,7 @@ void PluginDumper::loadQmltypesFile(const QStringList &qmltypesFilePaths,
|
||||
prepareLibraryInfo(libInfo, libraryPath, typesResult.dependencies,
|
||||
typesResult.errors, typesResult.warnings,
|
||||
typesResult.moduleApis, typesResult.objects);
|
||||
m_modelManager->updateLibraryInfo(libraryPath, libraryInfo);
|
||||
m_modelManager->updateLibraryInfo(libraryPath, libInfo);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user