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
QStringList *importedFiles, QSet<QString> *scannedPaths)
// scan library imports
QStringList importPaths = modelManager->importPaths();
foreach (const QString &libraryImport, doc->bind()->libraryImports()) {
foreach (const QString &importPath, modelManager->importPaths()) {
foreach (const QString &importPath, importPaths) {
QDir dir(importPath);;
const QString targetPath = dir.absolutePath();
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