Mercurial > hg > tony
comparison src/MainWindow.cpp @ 221:50122e9b817e
Avoid starting an action if selection is changed when no document present
author | Chris Cannam |
---|---|
date | Fri, 07 Mar 2014 10:31:51 +0000 |
parents | 834f7880947e |
children | 445dcb9026a9 |
comparison
equal
deleted
inserted
replaced
220:834f7880947e | 221:50122e9b817e |
---|---|
1816 } | 1816 } |
1817 | 1817 |
1818 void | 1818 void |
1819 MainWindow::selectionChangedByUser() | 1819 MainWindow::selectionChangedByUser() |
1820 { | 1820 { |
1821 if (!m_document) { | |
1822 // we're exiting, most likely | |
1823 return; | |
1824 } | |
1825 | |
1821 MultiSelection::SelectionList selections = m_viewManager->getSelections(); | 1826 MultiSelection::SelectionList selections = m_viewManager->getSelections(); |
1822 | 1827 |
1823 cerr << "MainWindow::selectionChangedByUser" << endl; | 1828 cerr << "MainWindow::selectionChangedByUser" << endl; |
1824 | 1829 |
1825 m_analyser->showPitchCandidates(m_pendingConstraint.isConstrained()); | 1830 m_analyser->showPitchCandidates(m_pendingConstraint.isConstrained()); |