src/documentmanager.cpp

changeset 206
654661eab7f3
parent 201
5d201ee4a9c3
child 212
27259810da6d
equal deleted inserted replaced
205:1a4342d80de7 206:654661eab7f3
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 << format( 191 errorStream << tr("The following files could not be opened: %1")
192 tr("The following files could not be opened: %1"), 192 .arg(bag.missing.join(", "));
193 bag.missing.join(", "));
194 } 193 }
195 } 194 }
196 195
197 void DocumentManager::closeDocument(const ModelId modelId) 196 void DocumentManager::closeDocument(const ModelId modelId)
198 { 197 {
265 } 264 }
266 } 265 }
267 else 266 else
268 { 267 {
269 errors << tr("Could not open %1 for writing: %2") 268 errors << tr("Could not open %1 for writing: %2")
270 .arg(file.fileName()) 269 .arg(file.fileName(), file.errorString());
271 .arg(file.errorString());
272 return false; 270 return false;
273 } 271 }
274 } 272 }
275 else 273 else
276 { 274 {

mercurial