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

This commit is contained in:
Christian Kamm
2010-04-26 10:40:18 +02:00
parent aa0926901b
commit 71b9057b0b
2 changed files with 2 additions and 5 deletions

View File

@@ -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;
localImportPaths.prepend(doc->path());
foreach (const QString &importPath, localImportPaths) {
foreach (const QString &importPath, _importPaths) {
QDir dir(importPath);
if (!dir.cd(packagePath))
continue;