forked from qt-creator/qt-creator
Revert "QmlJSCheck: Ensure that ::createObjectsForImport always works correctly"
This reverts commit fa376883f0
.
Reverting because this patch causes code model reset to fail often,
leading to corruption of code model.
Fixes: QDS-11496
Fixes: QDS-11520
Change-Id: Ied04dc34ef9f51e535dfe0772e245bdcb78e908a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -1493,10 +1493,8 @@ QList<const CppComponentValue *> CppQmlTypes::createObjectsForImport(const QStri
|
||||
|
||||
// if it already exists, skip
|
||||
const QString key = qualifiedName(package, fmo->className(), version);
|
||||
if (m_objectsByQualifiedName.contains(key)) {
|
||||
exportedObjects.insert(key, m_objectsByQualifiedName.value(key));
|
||||
if (m_objectsByQualifiedName.contains(key))
|
||||
continue;
|
||||
}
|
||||
|
||||
ComponentVersion cppVersion;
|
||||
for (const FakeMetaObject::Export &bestExport : std::as_const(bestExports)) {
|
||||
|
Reference in New Issue
Block a user