| 55 QString errorString; |
55 QString errorString; |
| 56 QTextStream errorStream{&errorString}; |
56 QTextStream errorStream{&errorString}; |
| 57 QString modelName = this->documents.openModel(path, errorStream); |
57 QString modelName = this->documents.openModel(path, errorStream); |
| 58 if (not modelName.isEmpty()) |
58 if (not modelName.isEmpty()) |
| 59 { |
59 { |
| 60 this->documents.loadDependenciesForModel(modelName, this->libraries, errorStream); |
60 this->documents.loadDependenciesForModel(modelName, path, this->libraries, errorStream); |
| 61 if (not errorString.isEmpty()) |
61 if (not errorString.isEmpty()) |
| 62 { |
62 { |
| 63 QMessageBox::warning( |
63 QMessageBox::warning( |
| 64 this, |
64 this, |
| 65 tr("Problem loading references"), |
65 tr("Problem loading references"), |