620 if (spec.divisions == HighResolution) |
620 if (spec.divisions == HighResolution) |
621 description.insert (0, "Hi-Res "); |
621 description.insert (0, "Hi-Res "); |
622 else if (spec.divisions == LowResolution) |
622 else if (spec.divisions == LowResolution) |
623 description.insert (0, "Lo-Res "); |
623 description.insert (0, "Lo-Res "); |
624 |
624 |
625 LDDocument* document = m_window->newDocument(); |
625 LDDocument* document = m_documents->createNew(false); |
626 document->setDefaultName(fileName); |
626 document->setDefaultName(fileName); |
627 |
627 |
628 if (not config::defaultName().isEmpty()) |
628 if (not config::defaultName().isEmpty()) |
629 { |
629 { |
630 document->header.license = LDHeader::defaultLicense(); |
630 document->header.license = LDHeader::defaultLicense(); |