Mercurial > hg > tony
diff src/MainWindow.cpp @ 269:8eb167e817e7
Remove any pitch candidate layers and selections before saving session
author | Chris Cannam |
---|---|
date | Thu, 03 Apr 2014 09:04:33 +0100 |
parents | 2dccb28a421f |
children | e33aa832e766 |
line wrap: on
line diff
--- a/src/MainWindow.cpp Thu Apr 03 08:51:30 2014 +0100 +++ b/src/MainWindow.cpp Thu Apr 03 09:04:33 2014 +0100 @@ -1685,6 +1685,11 @@ void MainWindow::saveSession() { + // We do not want to save mid-analysis regions -- that would cause + // confusion on reloading + m_analyser->clearReAnalysis(); + clearSelection(); + if (m_sessionFile != "") { if (!saveSessionFile(m_sessionFile)) { QMessageBox::critical