528 } |
528 } |
529 } |
529 } |
530 |
530 |
531 // Create the new subfile document |
531 // Create the new subfile document |
532 LDDocument* subfile = m_window->newDocument(); |
532 LDDocument* subfile = m_window->newDocument(); |
533 subfile->openForEditing(); |
|
534 subfile->setFullPath(fullsubname); |
533 subfile->setFullPath(fullsubname); |
535 subfile->setName(LDDocument::shortenName(fullsubname)); |
534 subfile->setName(LDDocument::shortenName(fullsubname)); |
536 |
535 |
537 Model header {m_documents}; |
536 Model header {m_documents}; |
538 header.emplace<LDComment>(subtitle); |
537 header.emplace<LDComment>(subtitle); |