From 77411cc3079994d19b920af15d0b858bb66e19fe Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Thu, 12 Sep 2013 18:51:16 +0200 Subject: minor fixes --- muse2/muse/seqmsg.cpp | 6 ++---- muse2/muse/widgets/utils.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/muse2/muse/seqmsg.cpp b/muse2/muse/seqmsg.cpp index 3dca4d44..669aff9d 100644 --- a/muse2/muse/seqmsg.cpp +++ b/muse2/muse/seqmsg.cpp @@ -669,7 +669,7 @@ void Audio::msgPlay(bool val) void Audio::msgRemoveTrack(Track* track, bool doUndoFlag) { - MusEGlobal::song->applyOperation(UndoOp(UndoOp::DeleteTrack, MusEGlobal::song->tracks()->index(track), track)); + MusEGlobal::song->applyOperation(UndoOp(UndoOp::DeleteTrack, MusEGlobal::song->tracks()->index(track), track), doUndoFlag); } //--------------------------------------------------------- @@ -689,9 +689,7 @@ void Audio::msgRemoveTracks() Track* tr = *t; if (tr->selected()) { - MusEGlobal::song->removeTrack1(tr); - msgRemoveTrack(tr, false); - MusEGlobal::song->removeTrack3(tr); + MusEGlobal::song->applyOperation(UndoOp(UndoOp::DeleteTrack, MusEGlobal::song->tracks()->index(tr), tr), false); loop = true; break; } diff --git a/muse2/muse/widgets/utils.cpp b/muse2/muse/widgets/utils.cpp index 0cb10a20..687c76e4 100644 --- a/muse2/muse/widgets/utils.cpp +++ b/muse2/muse/widgets/utils.cpp @@ -542,7 +542,7 @@ int get_paste_len() if (p->endTick() > end_tick) end_tick=p->endTick(); - p->unchainClone(); + p->unchainClone(); // just for safety; shouldn't be chained anyway. delete p; } } -- cgit v1.2.3