Commit eae88f02 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJSEditor: When looking for qml libraries scan the current doc's path.

Reviewed-by: Erik Verbruggen
parent c3304116
...@@ -235,8 +235,10 @@ static void findNewLibraryImports(const Document::Ptr &doc, const Snapshot &snap ...@@ -235,8 +235,10 @@ static void findNewLibraryImports(const Document::Ptr &doc, const Snapshot &snap
QStringList *importedFiles, QSet<QString> *scannedPaths) QStringList *importedFiles, QSet<QString> *scannedPaths)
{ {
// scan library imports // scan library imports
QStringList importPaths = modelManager->importPaths();
importPaths.prepend(doc->path());
foreach (const QString &libraryImport, doc->bind()->libraryImports()) { foreach (const QString &libraryImport, doc->bind()->libraryImports()) {
foreach (const QString &importPath, modelManager->importPaths()) { foreach (const QString &importPath, importPaths) {
QDir dir(importPath); QDir dir(importPath);
dir.cd(libraryImport); dir.cd(libraryImport);
const QString targetPath = dir.absolutePath(); const QString targetPath = dir.absolutePath();
......
Markdown is supported
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