summaryrefslogtreecommitdiff
path: root/muse2/muse/remote/pyapi.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2012-03-15 18:21:23 +0000
committerFlorian Jung <flo@windfisch.org>2012-03-15 18:21:23 +0000
commit27b7bf6815cda7abb67026c37b3e44daee1803cb (patch)
tree0b9d1c0bc84ac7ff8032e707f2b5fb4e0aaabb5c /muse2/muse/remote/pyapi.cpp
parent2d6f113a10eb485694e20a78500f650776d701e3 (diff)
merged with trunk
Diffstat (limited to 'muse2/muse/remote/pyapi.cpp')
-rw-r--r--muse2/muse/remote/pyapi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/muse2/muse/remote/pyapi.cpp b/muse2/muse/remote/pyapi.cpp
index 90818a44..2a10afa4 100644
--- a/muse2/muse/remote/pyapi.cpp
+++ b/muse2/muse/remote/pyapi.cpp
@@ -1130,11 +1130,12 @@ bool Song::event(QEvent* _e)
pipeline->setOn(fxid, onoff);
break;
}
- case QPybridgeEvent::SONG_ADD_TRACK:
+ case QPybridgeEvent::SONG_ADD_TRACK: {
MusECore::Undo operations;
MusEGlobal::song->addTrack(operations, (Track::TrackType)e->getP1()); // Add at end of list.
MusEGlobal::song->applyOperationGroup(operations);
break;
+ }
case QPybridgeEvent::SONG_CHANGE_TRACKNAME: {
Track* t = this->findTrack(e->getS1());
if (t == NULL)