forked from qt-creator/qt-creator
QmlDesigner: Disable NodeMetaInfo::importDirectoryPath() for project storage
We can add a different interface later if the modules save there source ids. Change-Id: Iafc6cefec0bfd8703328074b31932b0472164ec4 Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -1716,8 +1716,11 @@ QString NodeMetaInfo::componentFileName() const
|
||||
|
||||
QString NodeMetaInfo::importDirectoryPath() const
|
||||
{
|
||||
if (isValid())
|
||||
return m_privateData->importDirectoryPath();
|
||||
if constexpr (!useProjectStorage()) {
|
||||
if (isValid()) {
|
||||
return m_privateData->importDirectoryPath();
|
||||
}
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
Reference in New Issue
Block a user