diff -r 771168ee2c76 -r fe67489523b5 src/mainwindow.cpp --- a/src/mainwindow.cpp Sun Nov 03 13:18:55 2019 +0200 +++ b/src/mainwindow.cpp Sun Nov 03 17:57:21 2019 +0200 @@ -55,6 +55,14 @@ QString modelName = this->documents.openModel(path, errorStream); if (not modelName.isEmpty()) { + this->documents.loadDependenciesForModel(modelName, this->libraries, errorStream); + if (not errorString.isEmpty()) + { + QMessageBox::warning( + this, + tr("Problem loading references"), + errorString); + } this->openModelForEditing(modelName); this->addRecentlyOpenedFile(path); }