307 // Loading the file shouldn't count as actual edits to the document. |
307 // Loading the file shouldn't count as actual edits to the document. |
308 load->history()->setIgnoring (true); |
308 load->history()->setIgnoring (true); |
309 |
309 |
310 int numWarnings; |
310 int numWarnings; |
311 Parser parser {*fp}; |
311 Parser parser {*fp}; |
312 load->setHeader(parser.parseHeader()); |
312 load->header = parser.parseHeader(); |
313 parser.parseBody(*load); |
313 parser.parseBody(*load); |
314 fp->close(); |
314 fp->close(); |
315 fp->deleteLater(); |
315 fp->deleteLater(); |
316 |
316 |
317 if (m_loadingMainFile) |
317 if (m_loadingMainFile) |