From 76766c4c85e3f3793f604e1c2ffb986fea101ff6 Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Sun, 17 Dec 2017 21:48:33 +0100 Subject: [PATCH] Piano Roll - Don't quantize when pasting notes (#4058) Some changes on pasting notes in the Piano Roll: * Don't quantize notes when pasting * Add journal checkpoint * Set project changed --- src/gui/editors/PianoRoll.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index ae5c33c89..f1e1c9356 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -3763,7 +3763,7 @@ void PianoRoll::pasteNotes() cur_note.setSelected( true ); // add to pattern - m_pattern->addNote( cur_note ); + m_pattern->addNote( cur_note, false ); } // we only have to do the following lines if we pasted at @@ -3926,6 +3926,8 @@ void PianoRoll::quantizeNotes() return; } + m_pattern->addJournalCheckPoint(); + NoteVector notes = getSelectedNotes(); if( notes.empty() ) @@ -3951,6 +3953,7 @@ void PianoRoll::quantizeNotes() update(); gui->songEditor()->update(); + Engine::getSong()->setModified(); }