From c6ae1dcba62ead5e7f97c3fb6d591fe543f9fa93 Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Fri, 24 Nov 2017 05:38:47 +0100 Subject: [PATCH] Automation Editor - delete automation point (#3986) Fix regression from b68dc572a3a58ad2187efe3ef5b4848ef7254abd Let the right mouse button delete the automation point like before and add the space above it too. --- src/gui/editors/AutomationEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/editors/AutomationEditor.cpp b/src/gui/editors/AutomationEditor.cpp index f9124aaa8..733cf2814 100644 --- a/src/gui/editors/AutomationEditor.cpp +++ b/src/gui/editors/AutomationEditor.cpp @@ -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; }