forked from qt-creator/qt-creator
QmlJS: Fix loading builtin library info
The condition was always false, since projectInfoForPath always returns an empty project member. This meant the the fallback builtins that ship with Qt Creator were used, instead of the builtins that shipped with the Qt version. Change-Id: I9c3bf949d0046bcf687c913e32ddac95734f6c43 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -1401,7 +1401,7 @@ ModelManagerInterface::CppDataHash ModelManagerInterface::cppData() const
|
||||
LibraryInfo ModelManagerInterface::builtins(const Document::Ptr &doc) const
|
||||
{
|
||||
const ProjectInfo info = projectInfoForPath(doc->fileName());
|
||||
if (!info.project.isNull() && !info.qtQmlPath.isEmpty())
|
||||
if (!info.qtQmlPath.isEmpty())
|
||||
return m_validSnapshot.libraryInfo(info.qtQmlPath);
|
||||
return LibraryInfo();
|
||||
}
|
||||
|
Reference in New Issue
Block a user