src/mainwindow.cpp

changeset 23
3387a84ddaba
parent 21
0133e565e072
child 24
1a0faaaceb84
equal deleted inserted replaced
22:6da867fa5429 23:3387a84ddaba
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"),

mercurial