Automation Editor - delete automation point (#3986)

Fix regression from b68dc572a3
Let the right mouse button delete the automation point like before
and add the space above it too.
This commit is contained in:
Oskar Wallgren
2017-11-24 05:38:47 +01:00
committed by GitHub
parent 55076d0bb0
commit c6ae1dcba6

View File

@@ -523,7 +523,7 @@ void AutomationEditor::mousePressEvent( QMouseEvent* mouseEvent )
( it+1==time_map.end() ||
pos_ticks <= (it+1).key() ) &&
( pos_ticks<= it.key() + MidiTime::ticksPerTact() *4 / m_ppt ) &&
level == it.value() )
( level == it.value() || mouseEvent->button() == Qt::RightButton ) )
{
break;
}