From 42373397c2e2fbb14e965db6945def6c4a0f03c4 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Thu, 22 Aug 2013 17:25:28 +0200 Subject: more applyOperation. MusE compiles again, still does not link --- muse2/muse/song.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'muse2/muse/song.cpp') diff --git a/muse2/muse/song.cpp b/muse2/muse/song.cpp index be913b78..6085b1ba 100644 --- a/muse2/muse/song.cpp +++ b/muse2/muse/song.cpp @@ -2360,15 +2360,13 @@ void Song::recordEvent(MidiTrack* mt, Event& event) { if(ev.dataB() == event.dataB()) // Don't bother if already set. return; - // Indicate do undo, and do port controller values and clone parts. - MusEGlobal::audio->msgChangeEvent(ev, event, part, true, true, true); + MusEGlobal::song->applyOperation(UndoOp(UndoOp::ModifyEvent,event,ev,part,true,true)); return; } } } - // Indicate do undo, and do port controller values and clone parts. - MusEGlobal::audio->msgAddEvent(event, part, true, true, true); + MusEGlobal::song->applyOperation(UndoOp(UndoOp::AddEvent, event, part, true,true)); } //--------------------------------------------------------- -- cgit v1.2.3