diff -r 6da867fa5429 -r 3387a84ddaba src/mainwindow.cpp --- a/src/mainwindow.cpp Sun Jan 19 02:54:48 2020 +0200 +++ b/src/mainwindow.cpp Sun Jan 19 13:53:07 2020 +0200 @@ -57,7 +57,7 @@ QString modelName = this->documents.openModel(path, errorStream); if (not modelName.isEmpty()) { - this->documents.loadDependenciesForModel(modelName, this->libraries, errorStream); + this->documents.loadDependenciesForModel(modelName, path, this->libraries, errorStream); if (not errorString.isEmpty()) { QMessageBox::warning(