comparison 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
comparison
equal deleted inserted replaced
268:577101c9fdb7 269:8eb167e817e7
1683 } 1683 }
1684 1684
1685 void 1685 void
1686 MainWindow::saveSession() 1686 MainWindow::saveSession()
1687 { 1687 {
1688 // We do not want to save mid-analysis regions -- that would cause
1689 // confusion on reloading
1690 m_analyser->clearReAnalysis();
1691 clearSelection();
1692
1688 if (m_sessionFile != "") { 1693 if (m_sessionFile != "") {
1689 if (!saveSessionFile(m_sessionFile)) { 1694 if (!saveSessionFile(m_sessionFile)) {
1690 QMessageBox::critical 1695 QMessageBox::critical
1691 (this, tr("Failed to save file"), 1696 (this, tr("Failed to save file"),
1692 tr("Session file \"%1\" could not be saved.").arg(m_sessionFile)); 1697 tr("Session file \"%1\" could not be saved.").arg(m_sessionFile));