From 2c3df226ee08120df877dad2bf0ce625f16365ce Mon Sep 17 00:00:00 2001 From: gandalf3 Date: Fri, 22 Dec 2017 12:29:08 -0800 Subject: [PATCH] Allow individual velocity/pan changes with alt (#3923) Fix regression caused by 6e3d4f4, allow ALT to change the velocity of multiple selected notes. --- src/gui/editors/PianoRoll.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 98547583c21..d2ce4b94e67 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -2121,9 +2121,14 @@ void PianoRoll::mouseMoveEvent( QMouseEvent * me ) bool isUnderPosition = n->withinRange( ticks_start, ticks_end ); // Play note under the cursor if ( isUnderPosition ) { testPlayNote( n ); } - // If note is the one under the cursor or is selected when alt is - // not pressed - if ( ( isUnderPosition && !isSelection() ) || ( n->selected() && !altPressed ) ) + // If note is: + // Under the cursor, when there is no selection + // Selected, and alt is not pressed + // Under the cursor, selected, and alt is pressed + if ( ( isUnderPosition && !isSelection() ) || + ( n->selected() && !altPressed ) || + ( isUnderPosition && n->selected() && altPressed ) + ) { if( m_noteEditMode == NoteEditVolume ) {