# HG changeset patch # User Chris Cannam # Date 1393950774 0 # Node ID add7468a7ca1a53bd7f4abc7eaabeb800e42b9fd # Parent e963bdbc0707731b16a955530e35060d35c03cfc Fix failure to hide pitch candidates when making an empty selection to replace a non-empty one diff -r e963bdbc0707 -r add7468a7ca1 src/MainWindow.cpp --- a/src/MainWindow.cpp Tue Mar 04 16:32:08 2014 +0000 +++ b/src/MainWindow.cpp Tue Mar 04 16:32:54 2014 +0000 @@ -1789,10 +1789,11 @@ cerr << "MainWindow::selectionChanged" << endl; + m_analyser->showPitchCandidates(false); + if (!selections.empty()) { Selection sel = *selections.begin(); cerr << "MainWindow::selectionChanged: have selection" << endl; - m_analyser->showPitchCandidates(false); QString error = m_analyser->reAnalyseSelection(sel); if (error != "") { QMessageBox::critical