diff options
author | Marco Benelli <marco.benelli@qt.io> | 2019-01-07 09:40:10 +0100 |
---|---|---|
committer | Marco Benelli <marco.benelli@qt.io> | 2019-01-07 12:29:17 +0000 |
commit | 873b8820c1305630d6e682539cadc87252285c07 (patch) | |
tree | a154f64e03412069e59edfdc5e811da2d299efd0 | |
parent | bcafe202c9f8a7c4bad4cf60095138b1d6cbf2ac (diff) |
qmljs: relax checks on Qbs imports
Task-number: QTCREATORBUG-21042
Change-Id: I07093c240abb2f0fafe1a97fb4e81fd223551d43
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | src/libs/qmljs/qmljslink.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libs/qmljs/qmljslink.cpp b/src/libs/qmljs/qmljslink.cpp index 9c7855c5fd..737ec6cc46 100644 --- a/src/libs/qmljs/qmljslink.cpp +++ b/src/libs/qmljs/qmljslink.cpp @@ -393,13 +393,8 @@ Import LinkPrivate::importNonFile(Document::Ptr doc, const ImportInfo &importInf } // TODO: at the moment there is not any types information on Qbs imports. - // Just check that tha the import is listed in the Qbs bundle. - if (doc->language() == Dialect::QmlQbs) { - QmlBundle qbs = ModelManagerInterface::instance() - ->activeBundles().bundleForLanguage(Dialect::QmlQbs); - if (qbs.supportedImports().contains(importInfo.name())) - importFound = true; - } + if (doc->language() == Dialect::QmlQbs) + importFound = true; if (!importFound && importInfo.ast()) { import.valid = false; |