350 load->addObjects(objs); |
350 load->addObjects(objs); |
351 |
351 |
352 if (m_loadingMainFile) |
352 if (m_loadingMainFile) |
353 { |
353 { |
354 m_window->changeDocument(load); |
354 m_window->changeDocument(load); |
355 m_window->renderer()->setDocument(load); |
|
356 print(tr("File %1 parsed successfully(%2 errors)."), path, numWarnings); |
355 print(tr("File %1 parsed successfully(%2 errors)."), path, numWarnings); |
357 } |
356 } |
358 |
357 |
359 load->history()->setIgnoring(false); |
358 load->history()->setIgnoring(false); |
360 return load; |
359 return load; |