src/documentmanager.cpp

changeset 1291
9c570a30c98a
parent 1288
d1e45f90654b
child 1298
dbc8bb2a4d84
equal deleted inserted replaced
1290:8db26042f3d1 1291:9c570a30c98a
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)

mercurial