Mercurial > hg > tony
comparison src/Analyser.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 | df9861755e33 |
children | 29005aa146e2 |
comparison
equal
deleted
inserted
replaced
268:577101c9fdb7 | 269:8eb167e817e7 |
---|---|
603 myLayer->deleteSelection(sel); | 603 myLayer->deleteSelection(sel); |
604 myLayer->paste(m_pane, m_preAnalysis, 0, false); | 604 myLayer->paste(m_pane, m_preAnalysis, 0, false); |
605 } | 605 } |
606 | 606 |
607 void | 607 void |
608 Analyser::clearReAnalysis() | |
609 { | |
610 discardPitchCandidates(); | |
611 } | |
612 | |
613 void | |
608 Analyser::discardPitchCandidates() | 614 Analyser::discardPitchCandidates() |
609 { | 615 { |
610 if (!m_reAnalysisCandidates.empty()) { | 616 if (!m_reAnalysisCandidates.empty()) { |
611 // We don't use a compound command here, because we may be | 617 // We don't use a compound command here, because we may be |
612 // already in one. Caller bears responsibility for doing that | 618 // already in one. Caller bears responsibility for doing that |