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:
Christian Kamm
2020-05-09 12:46:05 +02:00
parent bd5a5120cb
commit 6dc87d96b7

View File

@@ -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);
}
});
}