src/ldDocument.cpp

changeset 1097
9a9e6ce0c5dc
parent 1090
ed73c4f48ca4
child 1098
0b837bed121d
equal deleted inserted replaced
1096:7cc929d8fc4d 1097:9a9e6ce0c5dc
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 {

mercurial