Mercurial > hg > tony
comparison src/MainWindow.cpp @ 226:9bdff8d10a86
Fix #899 crash when loading new file
author | Chris Cannam |
---|---|
date | Mon, 10 Mar 2014 14:59:50 +0000 |
parents | 445dcb9026a9 |
children | ae0bf8dc5833 |
comparison
equal
deleted
inserted
replaced
225:dd97a58277ea | 226:9bdff8d10a86 |
---|---|
1228 void | 1228 void |
1229 MainWindow::closeSession() | 1229 MainWindow::closeSession() |
1230 { | 1230 { |
1231 if (!checkSaveModified()) return; | 1231 if (!checkSaveModified()) return; |
1232 | 1232 |
1233 m_analyser->fileClosed(); | |
1234 | |
1233 while (m_paneStack->getPaneCount() > 0) { | 1235 while (m_paneStack->getPaneCount() > 0) { |
1234 | 1236 |
1235 Pane *pane = m_paneStack->getPane(m_paneStack->getPaneCount() - 1); | 1237 Pane *pane = m_paneStack->getPane(m_paneStack->getPaneCount() - 1); |
1236 | 1238 |
1237 while (pane->getLayerCount() > 0) { | 1239 while (pane->getLayerCount() > 0) { |