Commit 71b9057b authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: The qml document's path is no longer an implicit import path.

parent aa092690
......@@ -275,9 +275,7 @@ void Link::importNonFile(Interpreter::ObjectValue *typeEnv, Document::Ptr doc, A
} else {
// check the filesystem
const QString packagePath = Bind::toString(import->importUri, QDir::separator());
QStringList localImportPaths = _importPaths;
foreach (const QString &importPath, localImportPaths) {
foreach (const QString &importPath, _importPaths) {
QDir dir(importPath);
if (!
......@@ -245,8 +245,7 @@ static void findNewLibraryImports(const Document::Ptr &doc, const Snapshot &snap
QStringList *importedFiles, QSet<QString> *scannedPaths)
// scan library imports
QStringList importPaths = modelManager->importPaths();
const QStringList importPaths = modelManager->importPaths();
foreach (const QString &libraryImport, doc->bind()->libraryImports()) {
foreach (const QString &importPath, importPaths) {
QDir dir(importPath);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment