Skip to content

Commit

Permalink
Fix glitch in undo/redo of note edits via the menu (LMMS#5789)
Browse files Browse the repository at this point in the history
  • Loading branch information
thmueller64 authored and IanCaio committed Mar 28, 2021
1 parent cd3df46 commit 0ac23fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3563,13 +3563,14 @@ void PianoRoll::focusOutEvent( QFocusEvent * )
update();
}

void PianoRoll::focusInEvent( QFocusEvent * )
void PianoRoll::focusInEvent( QFocusEvent * ev )
{
if ( hasValidPattern() )
{
// Assign midi device
m_pattern->instrumentTrack()->autoAssignMidiDevice(true);
}
QWidget::focusInEvent(ev);
}


Expand Down

0 comments on commit 0ac23fe

Please sign in to comment.