70 m_window->save(currentDocument(), true); |
70 m_window->save(currentDocument(), true); |
71 } |
71 } |
72 |
72 |
73 void FileToolset::saveAll() |
73 void FileToolset::saveAll() |
74 { |
74 { |
75 for (LDDocument* document : m_documents->allDocuments()) |
75 for (auto& document : *m_documents) |
76 m_window->save(document, false); |
76 m_window->save(document.get(), false); |
77 } |
77 } |
78 |
78 |
79 void FileToolset::close() |
79 void FileToolset::close() |
80 { |
80 { |
81 if (currentDocument()->isSafeToClose()) |
81 if (currentDocument()->isSafeToClose()) |