--- a/src/documentmanager.cpp Wed Jun 15 13:03:33 2022 +0300 +++ b/src/documentmanager.cpp Wed Jun 15 13:05:53 2022 +0300 @@ -172,7 +172,7 @@ void DocumentManager::setModelPath( const ModelId modelId, const QString &newPath, - const LibraryManager &libraries, + const LibrariesModel &libraries, QTextStream &errorStream) { ModelInfo* info = findInMap(this->openModels, modelId); @@ -337,7 +337,7 @@ static QString findFile( QString referenceName, const QString& modelPath, - const LibraryManager& libraries) + const LibrariesModel& libraries) { // Try to find the file in the same place as the model itself referenceName.replace("\\", "/"); @@ -377,7 +377,7 @@ static std::set<Dependency> resolveReferencePaths( const DocumentManager::ModelInfo* modelInfo, - const LibraryManager* libraries) + const LibrariesModel* libraries) { std::set<Dependency> result; const std::set<QString> refNames = referenceNames(modelInfo->model.get()); @@ -395,7 +395,7 @@ static void loadDependenciesForModel( DocumentManager::ModelInfo* info, DocumentManager* documents, - const LibraryManager* libraries, + const LibrariesModel* libraries, std::map<QString, QString>& missing) { bool repeat = true; @@ -425,7 +425,7 @@ } } -std::map<QString, QString> DocumentManager::loadDependenciesForAllModels(const LibraryManager& libraries) +std::map<QString, QString> DocumentManager::loadDependenciesForAllModels(const LibrariesModel& libraries) { std::map<QString, QString> missing; for (auto& modelInfoPair : this->openModels)