145 void LDDocument::close() |
145 void LDDocument::close() |
146 { |
146 { |
147 if (not isFrozen()) |
147 if (not isFrozen()) |
148 { |
148 { |
149 m_flags |= IsFrozen; |
149 m_flags |= IsFrozen; |
150 print ("Closed %1", name()); |
150 m_manager->documentClosed(this); |
151 m_window->updateDocumentList(); |
|
152 |
|
153 // If the current document just became implicit (i.e. user closed it), we need to get a new one to show. |
|
154 if (currentDocument() == this) |
|
155 m_window->currentDocumentClosed(); |
|
156 } |
151 } |
157 } |
152 } |
158 |
153 |
159 LDGLData* LDDocument::glData() |
154 LDGLData* LDDocument::glData() |
160 { |
155 { |