Skip to content

Commit 0b81e47

Browse files
authored
Automation Editor - delete automation point (LMMS#3986)
Fix regression from 7772edc Let the right mouse button delete the automation point like before and add the space above it too.
1 parent ec768b0 commit 0b81e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/editors/AutomationEditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ void AutomationEditor::mousePressEvent( QMouseEvent* mouseEvent )
523523
( it+1==time_map.end() ||
524524
pos_ticks <= (it+1).key() ) &&
525525
( pos_ticks<= it.key() + MidiTime::ticksPerTact() *4 / m_ppt ) &&
526-
level == it.value() )
526+
( level == it.value() || mouseEvent->button() == Qt::RightButton ) )
527527
{
528528
break;
529529
}

0 commit comments

Comments
 (0)