| 186 }; |
186 }; |
| 187 this->loadDependenciesForModel(modelId, path, bag); |
187 this->loadDependenciesForModel(modelId, path, bag); |
| 188 if (not bag.missing.empty()) |
188 if (not bag.missing.empty()) |
| 189 { |
189 { |
| 190 bag.missing.sort(Qt::CaseInsensitive); |
190 bag.missing.sort(Qt::CaseInsensitive); |
| 191 errorStream << utility::format( |
191 errorStream << format( |
| 192 "The following files could not be opened: %1", |
192 tr("The following files could not be opened: %1"), |
| 193 bag.missing.join(", ")); |
193 bag.missing.join(", ")); |
| 194 } |
194 } |
| 195 } |
195 } |
| 196 |
196 |
| 197 void DocumentManager::closeDocument(const ModelId modelId) |
197 void DocumentManager::closeDocument(const ModelId modelId) |