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
This commit is contained in:
Oskar Wallgren
2017-12-17 21:48:33 +01:00
committed by GitHub
parent 5bad0ea8c0
commit 76766c4c85

View File

@@ -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();
}