1078:c72e3115a297 | 1079:67c6e5d32e68 |
---|---|
327 // Loading the file shouldn't count as actual edits to the document. | 327 // Loading the file shouldn't count as actual edits to the document. |
328 load->history()->setIgnoring (true); | 328 load->history()->setIgnoring (true); |
329 | 329 |
330 int numWarnings; | 330 int numWarnings; |
331 bool ok; | 331 bool ok; |
332 Model model; | 332 Model model {this}; |
333 loadFileContents(fp, model, &numWarnings, &ok); | 333 loadFileContents(fp, model, &numWarnings, &ok); |
334 load->merge(model); | 334 load->merge(model); |
335 fp->close(); | 335 fp->close(); |
336 fp->deleteLater(); | 336 fp->deleteLater(); |
337 | 337 |