# HG changeset patch # User Chris Cannam # Date 1396424007 -3600 # Node ID 852ee50c0de51d50001795e0164d6da3bab3e324 # Parent bb32b9fbacf836e472597282bedf3dc545795dd8 Restore "Snap Notes" action (it's still necessary because you can move notes away manually) diff -r bb32b9fbacf8 -r 852ee50c0de5 src/MainWindow.cpp --- a/src/MainWindow.cpp Tue Apr 01 16:23:00 2014 +0100 +++ b/src/MainWindow.cpp Wed Apr 02 08:33:27 2014 +0100 @@ -614,6 +614,7 @@ m_rightButtonMenu->addAction(action); action = new QAction(tr("Merge Notes"), this); + action->setShortcut(tr("Ctrl+=")); action->setStatusTip(tr("Merge all notes within the selected region into a single note")); m_keyReference->registerShortcut(action); connect(action, SIGNAL(triggered()), this, SLOT(mergeNotes())); @@ -628,16 +629,14 @@ connect(this, SIGNAL(canSnapNotes(bool)), action, SLOT(setEnabled(bool))); menu->addAction(action); m_rightButtonMenu->addAction(action); -/* + action = new QAction(tr("Snap Notes to Pitch Track"), this); - action->setShortcut(tr("Ctrl+=")); action->setStatusTip(tr("Set notes within the selected region to the median frequency of their underlying pitches, or remove them if there are no underlying pitches")); m_keyReference->registerShortcut(action); connect(action, SIGNAL(triggered()), this, SLOT(snapNotesToPitches())); connect(this, SIGNAL(canSnapNotes(bool)), action, SLOT(setEnabled(bool))); menu->addAction(action); m_rightButtonMenu->addAction(action); -*/ } void