forked from qt-creator/qt-creator
qmljs: lookup libraries in the correct place
This lead some libraries to be “lost”, typically QtQuick Change-Id: I44e8fd12f53ce1371a2d4bd094fe5b67cad30676 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Eike Ziller
parent
dffd2866b3
commit
b02904597b
@@ -847,7 +847,7 @@ static void findNewLibraryImports(const Document::Ptr &doc, const Snapshot &snap
|
||||
if (!import.version().isValid())
|
||||
continue;
|
||||
foreach (const PathAndLanguage &importPath, importPaths) {
|
||||
const QString targetPath = importPath.path().toFileInfo().dir().filePath(import.path());
|
||||
const QString targetPath = importPath.path().appendPath(import.path()).toString();
|
||||
findNewQmlLibrary(targetPath, import.version(), snapshot, modelManager,
|
||||
importedFiles, scannedPaths, newLibraries);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user